Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code : codeBlock* EOF;
- codeBlock
- : text
- | tag1Ops
- | tag2Ops
- ;
- tag1Ops: START_1_TAG ID END_2_TAG ;
- tag2Ops: START_2_TAG ID END_2_TAG ;
- text: ~(START_1_TAG|START_2_TAG)+;
- START_1_TAG : '<%' ;
- END_1_TAG : '%>' ;
- START_2_TAG : '<<';
- END_2_TAG : '>>' ;
- ID : [A-Za-z_][A-Za-z0-9_]*;
- INT_NUMBER: [0-9]+;
- WS : ( ' ' | 'n' | 'r' | 't')+ -> channel(HIDDEN);
- SPACES: SPACE+;
- ANY_CHAR : .;
- fragment SPACE : ' ' | 'r' | 'n' | 't' ;
Add Comment
Please, Sign In to add comment