Skip to content

Instantly share code, notes, and snippets.

@tsvx
Created June 12, 2017 12:07
Show Gist options
  • Save tsvx/a1e7dd86318b002a2159e217e0ec33f1 to your computer and use it in GitHub Desktop.
Save tsvx/a1e7dd86318b002a2159e217e0ec33f1 to your computer and use it in GitHub Desktop.
Prove that ANTLR4's EOF can be matched any number of times
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