On this page:
cfg-parser

3 Context-Free Parsers

The parser-tools/cfg-parser library provides a parser generator that is an alternative to that of parser-tools/yacc.

syntax

(cfg-parser clause ...)

 
clause = 
(grammar (non-terminal-id
          ((grammar-id ...) maybe-prec expr)
          ...)
         ...)
  | (tokens group-id ...)
  | (start non-terminal-id ...)
  | (end token-id ...)
  | (error expr)
  | (src-pos)
Creates a parser similar to that of parser. Unlike parser, cfg-parser, can consume arbitrary and potentially ambiguous context-free grammars. Its interface is a subset of parser-tools/yacc, with the following differences: