Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grammar ImmanixToStringDebug;
- options {
- output=AST;
- ASTLabelType=CommonTree;
- }
- p : m;
- m : (LP! binop RP! rep^?) | (LB! binop RB!) |SM;
- binop : m (op^ m)*;
- op : LSUCC | RSUCC | SUCC;
- rep : '*';//'{' ('0'..'9')+ '}';
- SM : ('<' | '>' | 'a'..'z' | 'A'..'Z' | '/')+;
- OPT : '?';
- RP : ')';
- LP : '(';
- RB : ']';
- LB : '[';
- RSUCC : '<~';
- LSUCC : '~>';
- SUCC : '~';
Add Comment
Please, Sign In to add comment