I'm reading through the jison documentation and one of the examples gives a lexer rule that matches the end of file (<<EOF>>
). However, that can only be used if you are writing the grammar in JISON format. Instead, I am using the JSON format to describe my grammar, but I cannot find anything in the documentation describing how to match the end of file. I have tried using "<<EOF>>"
as the lexer rule, but that literally matches the string <<EOF>>
.
How do I do this? Is there more documentation for jison somewhere that I'm missing?