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/library_skl.ecf $GOBO/library/kernel/library.ecf
<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 two libraries listed above are required: the parser skeleton library and kernel adaptation library allowing portability across various Eiffel compilers.
Copyright © 2000-2019, Eric
Bezault mailto:ericb@gobosoft.com http://www.gobosoft.com Last Updated: 20 September 2019 |