Last active
December 12, 2019 15:48
-
-
Save amazzalel-habib/ef42e0faaa05b9b4b8cf9b74255faed0 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 EOL; | |
completeExpression : COMPLETE TODO STRING EOL; | |
ADD : 'ADD'; | |
TODO : 'TODO'; | |
COMPLETE: 'COMPLETE'; | |
STRING: '"' ~ ["]* '"'; | |
EOL: [\r\n] +; | |
WS: [ \t] -> skip; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment