|Stages in Using Geyacc|
This section lists the steps to follow to produce a working parser using geyacc. First, you have to write a description of the parser you want to generate:
To turn the above parser specification into a runnable program, proceed as follows:
$GOBO/library/parse/skeleton $GOBO/library/kernel $GOBO/library/kernel/spec/<compiler>
where <compiler> is either ise or ge.
<debug name="GEYACC" enabled="true"/>
Along with the verbose file generated with the -v option, this will help you to find out what is going on in the parser when it reads some 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 geyacc. During the design of the parser 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 parser skeleton cluster and Kernel adaptation clusters allowing portability across various Eiffel compilers.
Copyright © 2000-2005, Eric
Last Updated: 22 February 2005