Skip to main content
6 events
when toggle format what by license comment
Feb 28, 2023 at 15:41 answer added Pavel Ganelin timeline score: 2
Feb 26, 2023 at 11:58 comment added kaby76 Easy. Use a "pumping" form of "variable". Try this: grammar Foo; variable: var_ ';' EOF; var_ : identifier var2 exp ; var2: ',' identifier var2 exp ',' | type_info ; type_info : ':' type '='; identifier: Id; Id: [a-zA-Z_]+; type: Id; exp: Num; Num: [0-9]+; WS: [ \t\n\r]+ -> skip;. Make sure to use full grammars and examples in questions. In Antlr, make sure to use an EOF-terminated start rule.
Feb 26, 2023 at 9:46 answer added Mike Lischke timeline score: 3
Feb 26, 2023 at 8:27 history edited Duy Duy
edited tags
Feb 26, 2023 at 7:46 history edited Duy Duy CC BY-SA 4.0
added 48 characters in body
Feb 26, 2023 at 7:33 history asked Duy Duy CC BY-SA 4.0