Guest User

Untitled

a guest
Jul 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. grammar ImmanixToStringDebug;
  2.  
  3. options {
  4. output=AST;
  5. ASTLabelType=CommonTree;
  6. }
  7.  
  8. p : m;
  9. m : (LP! binop RP! rep^?) | (LB! binop RB!) |SM;
  10. binop : m (op^ m)*;
  11. op : LSUCC | RSUCC | SUCC;
  12. rep : '*';//'{' ('0'..'9')+ '}';
  13.  
  14. SM : ('<' | '>' | 'a'..'z' | 'A'..'Z' | '/')+;
  15. OPT : '?';
  16. RP : ')';
  17. LP : '(';
  18. RB : ']';
  19. LB : '[';
  20. RSUCC : '<~';
  21. LSUCC : '~>';
  22. SUCC : '~';
Add Comment
Please, Sign In to add comment