Difference between revisions of "Official LLG Parser"
m (Gleki moved page jbocre: Official Parser to Official Parser without leaving a redirect: Text replace - "jbocre: ([A-Z])" to "$1")
m (Conversion script moved page Official Parser to official Parser: Converting page titles to lowercase)
Revision as of 08:27, 30 June 2014
Official LLG Parser
The files in this directory are the current distribution of the LLG official Lojban parser, in source form and MS-DOS executable.
Basically, there are two files. /parser.zip contains the MS-DOS executable, whereas /parser.shar.gz contains the source code. To compile the parser from the source code, just say "cc -o parser *.c"; there is no Makefile. The code is in K&R C, but should compile all right using an ANSI compiler. If you have trouble unpacking the ZIP file, use PKZipFix to convert it to MS-DOS ZIP format.
Both versions contain the 'yacc' grammar, the current E-BNF grammar, and a list of technical fixes updating the 2nd baseline grammar. You can process the 'yacc' version with yacc or bison, but do not attempt to use the resulting y.tab.c file in the parser -- the provided grammar.c has been extensively hacked both before and after 'yacc'ing to make it work in the parser.