I know Antlr4 has EOF
keyword to denote end of file.
Where to see full list of such keywords?
I don't see EOF
here: https://github.com/antlr/antlr4/blob/master/doc/lexer-rules.md
I know Antlr4 has EOF
keyword to denote end of file.
Where to see full list of such keywords?
I don't see EOF
here: https://github.com/antlr/antlr4/blob/master/doc/lexer-rules.md
While, the free online documentation can be a bit sparse, the relevant section is start-rules-and-eof.
Other resources include Parr's book TDAR -- highly recommended, the ANTLR4 grammar itself, and the other sample grammars in that repo.
EOF is not a keyword but a token value. There are only very few such predefined valus and the best place to spot them is probably the source code. There is: