|Stages in Using Gelex|
This section lists the steps to follow to produce a working scanner using gelex. First, you have to write a description of the scanner you want to generate:
To turn the above scanner specification into a runnable program, proceed as follows:
$GOBO/library/lexical/src/skeleton $GOBO/library/kernel/src $GOBO/library/kernel/src/spec/<compiler>
<debug name="GELEX" enabled="true"/>
This will help you to find out what kind of tokens are recognized from input.
Note that contrary to false assumptions, there is no need to include in your system all libraries that come with Gobo Eiffel in order to take advantage of the facilities provided by gelex. During the design of the scanner skeleton, care has been taken to only use Kernel classes such as ARRAY or STRING, and therefore avoiding the unnecessary overhead of other library classes. As a consequence, only the three clusters listed above are required: the scanner skeleton cluster and Kernel adaptation clusters allowing portability across various Eiffel compilers.
Copyright © 2001-2008, Eric
Last Updated: 19 April 2008