yacc -> byacc conversion

derek@knosof.co.uk (Derek M Jones)
Thu, 12 Oct 1995 21:31:13 GMT

          From comp.compilers

Related articles
yacc -> byacc conversion derek@knosof.co.uk (1995-10-12)
| List of all articles for this month |

Newsgroups: comp.compilers
From: derek@knosof.co.uk (Derek M Jones)
Keywords: yacc, question, comment
Organization: Compilers Central
Date: Thu, 12 Oct 1995 21:31:13 GMT


I have a parser based on the skeleton use by the standard Unix
version of yacc. This parser includes error recovery in the
grammar and the parser itself.

On a different machine byacc is the LALR parser generated
supplied. Among other differences this tool uses a different
table packing algorithm.

Does anybody have experiences of converting a parser on one
tool to the other (ie maintaining the error recovery action in
the parser)? Even better does anybody know of a simple method
for maintaining a common source module that supports both parser

Yes I could simply have two parsers....

[Or you could stick with byacc and export the generated C. -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.