Created
May 11, 2020 00:38
-
-
Save amazzalel-habib/8e87c729c459033002ac426dbd732e0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar TodoLangGrammar; | |
todoExpressions : (addExpression)* (completeExpression)*; | |
addExpression : ADD TODO STRING; | |
completeExpression : COMPLETE TODO STRING; | |
ADD : 'ADD'; | |
TODO : 'TODO'; | |
COMPLETE: 'COMPLETE'; | |
STRING: '"' ~ ["]* '"'; | |
EOL: [\r\n] + -> skip; | |
WS: [ \t] -> skip; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment