Coder Social home page Coder Social logo

cppparser's People

Contributors

nfer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cppparser's Issues

comment line not parse right.

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

more space char in define value not parsing correctly

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",

space char lost after parsing constant define

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.

multi-line comments parse uncorrectly

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.