Top  Previous  Next

Scripts > Productions > EOF


EOF denotes the "end of file" or "end of input". This special token is normally created automatically. It is contained in the follow set of the start rule and in the follow set of the nullable structures at the end of the start rule. If the start rule itself is nullable, EOF is contained also in its first set.


It is possible to use EOF explicitly inside of a production. Behind EOF no other tokens can follow. Up to the end of the program EOF may be followed only by nullable structures or the program should be interrupted by EXIT.





("b" | EOF EXIT)



Remark: The production parser of the TextTransformer uses EOF, to realize the reduced output and assignment instructions (e.g.: {{out << }} ) for the return values of productions.

This page belongs to the TextTransformer Documentation

Home  Content  German