-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Tripped myself on subtle difference between token and production definitions :)
identifier: 'a'-'z' { 'a'-'z' };
File: Enum;
Enum: "enum" identifier "{" { identifier } "}";
->
Parse error: Error: {(13) { @ 4:29, expected one of: | ; g_sdt_lit prodId tokId string_lit
which is the unquoted open brace:
Enum: "enum" identifier "{" { identifier } "}";
^
12345678901234567890123456789
Obviously, I need to use the alternate structure here, but I'm just curious if it wouldn't actually just make sense to have that effect achieved by introducing the use of '{' in productions anyway?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels