Skip to content

bug: fail to parse statements interleaved with preprocessor directives #4

Description

@simonvic

The following code fails to get parsed

class
#ifdef FOO
Foo
#else
Bar
#endif
{
}

Possible naive solution: parse preprocessor directives as "extras" and inject another ad-hoc parser
Proper solution: check how other C languages parsers have them implemented
(other parsers also fail on such scenarios)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions