Go to the first, previous, next, last section, table of contents.


Unit gps

The classes generated by gp depend on the TOM unit gps. This name is short for `gp skeleton'. The gps unit contains the following classes:

Parser
This is the superclass of every gp-generated parser. It contains the machinery for reporting errors and warnings, interacting with the lexer, tracing a parser's operation, etc.
Lexer
A fully deferred, stateless class (i.e., interface or behavioural class) that defines the interface to a lexer, as employed by a Parser.
SkeletonLexer
A subclass of Lexer, this class provides a skeleton for real lexers, including important instance variables and part of the interface defined by Lexer.
StreamLexer
Subclass of SkeletonLexer, the StreamLexer is provided as a handy superclass for lexers that read from an InputStream, as will almost all lexers do.
FileElement
A bare class that knows how to report its location (line number). It is intended to be used as a superclass of semantic entities that are built from reading the input, so that reporting errors for them through the parser is easy (since the parser knows how to report an error location for FileElement objects).


Go to the first, previous, next, last section, table of contents.