Replies: 1 comment
-
@ououmania How did you define the WHITESPACE rule? if it does include the NEWLINE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been struglling for the whole day to parse comments. The basic syntax is the following:
COMMENT = { "//" ~ (!"\n" ~ ANY)* | "/" ~ (!"/" ~ ANY)* ~ "*/" }
// C/C++ field
struct_field = { type_ ~ name ~ ("=" ~ expression) ? ~ ";" ~ DUMMY_RULE? }
But I came accross two problems and don't know how to solve them:
Is there are an easy way to avoid the two problems? Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions