nfer / cppparser Goto Github PK
View Code? Open in Web Editor NEWa c/c++ source file parser
a c/c++ source file parser
for define statement like below:
#define hello word//comment
the comment pos should be 18(index start with 0), but the program result is:
comment occurs at pos 17
on version d0e4337, parsing below define statement works not as expect:
#define CURPROJNAME "C URPR OJN AME"
after parsing, the result is:
Line 8 is a constant define: CURPROJNAME, value is "C URP OJ AME"
while the right result should be:
Line 8 is a constant define: CURPROJNAME, value is "C URPR OJN AME",
on version 374b0b6, parsing below define statement works not as expect:
#define SV_PROGRAM_NAME "Source Viewer"
the result is:
Line 2 is a constant define: SV_PROGRAM_NAME, value is "SourceViewer"
oohs, the space between Source and Viewer lost.
on d1350ca
for test content:
#define /*test*/ TEST_DEFINE1 123
#define TEST_DEFINE2 /*test*/ 123
expect two multi-line comments, but actually result is:
TYPE_MULTILINE
start at 3, end at 7
skip 5 after comment
TYPE_MULTILINE
start at 17, end at 21
skip 5 after comment
TYPE_MULTILINE
start at 17, end at 21
skip 5 after comment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.