EOF
The end-of-file token, built into the ANTLR runtime. Used in the top-level library rule to assert that the entire input has been consumed. It is not a character sequence but a virtual marker emitted by the lexer when the input stream is exhausted.
Examples
Appears implicitly at the end of every CQL library
library MyLibrary version '1.0.0' using FHIR version '4.0.1' define "Hello": 'world' // EOF is matched here automatically by the ANTLR parser
EBNF
EOF : /* built-in ANTLR end-of-file token */ ;