Nov. 17, 2017
1:10 p.m.
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/Pyt... 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