Tasks related to input processing
This module provides a function
GetCurrTok that can be used to
access the string of the current token read from input.
The function is used for example to access the name of a file to
be included if the switching computation is issued by the parser
as specified in the concrete grammar.
This module is instantiated without generic parameters by
The signature of the function is
char *GetCurrTok (void)
- It accesses the string of the current token, stores it in memory,
and yields a pointer to the stored string as result.
In our running example we could achieve the same effect of file
inclusion as described in (see Insert a File into the Input Stream), by specifying a computation
in the concrete grammar rather than in a
The token of
FileName that immediatly follows the computation
is accessed. The call of
ChkFileOpnd is assumed to check
for success of the