Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [section1]
- identifier1=arbitrary string 1
- identifier2=arbitrary string 2
- [section2]
- identifier3=arbitrary string 3
- identifier4=arbitrary string 4
- grammar EDS;
- file: COMMENT* NEWLINE* section* ;
- section
- : '[' ID ']' NEWLINE ( COMMENT | assign | NEWLINE)* ;
- assign
- : ID STRING;
- ID : [a-zA-Z0-9_]+ ;
- STRING
- : '=' .*? 'r'? 'n';
- NEWLINE
- : 'r'? 'n' ;
- WS : [ t]+ -> skip ;
- COMMENT
- : ';' .*? 'r'? 'n' -> skip ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement