Created
June 12, 2017 12:07
-
-
Save tsvx/a1e7dd86318b002a2159e217e0ec33f1 to your computer and use it in GitHub Desktop.
Prove that ANTLR4's EOF can be matched any number of times
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 TestEof; | |
ra: 'a' rb EOF; | |
rb: 'b' rc EOF; | |
rc: 'c' EOF; | |
WS: [ \r\n\t] -> skip; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment