Hi Andrew,
there is an 'E O F' token generated by SmaCC; I haven't tried to use it
in a parser yet.
The second is used in the Python2 parser. See:
https://github.com/ThierryGoubier/SmaCC/blob/master/SmaCC-Python.package/PythonScanner2.class/instance/scannerError.st
Regards,
Thierry
Le 17/11/2017 à 04:11, Prof. Andrew P. Black a écrit :
Is there a way, in SmaCC, or either
- writing a grammar production that involves EOF (end of file)
- or, writing a scanner action that is executed when EOF is read.
Andrew