Official LLG Parser: Difference between revisions

From Lojban
Jump to navigation Jump to search
m (Conversion script moved page Official Parser to official Parser: Converting page titles to lowercase)
m (Gleki moved page official Parser to Official LLG Parser without leaving a redirect)

Revision as of 17:22, 22 October 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. / 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 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.

Much newer version 3.0 resides on John Cowan's site, look for file parser-3.0.00.tar.gz No idea about its official status although.