marpatcl_marpagen - Marpa/Tcl - The Generator Application
Welcome to Marpa/Tcl, a Tcl binding to the "libmarpa" parsing engine.
Please read the document Marpa/Tcl - Introduction to Marpa/Tcl, if you have not done so already. It provides an overview of the whole system.
This document is targeted at users of Marpa/Tcl with the goal of creating parser packages.
marpa-gen is the generator application used to read a SLIF grammar definition and create various forms of output, including packages implementing parsers and lexers for the grammar.
To make effective use of it is recommended to also read Marpa/Tcl - The SLIF grammar specification language.
In its most basic form the generator command is invoked with the path to a grammar-file, printing the result to stdout. If a second path to output is specified the result is saved into that file, possibly creating it.
Invoking the command with no arguments, while technically invalid, causes it to print basic help information, i.e. syntax, available options, and available output types.
The available options are:
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such at the Marpa/Tcl Tracker. Please report any ideas for enhancements you may have for either package and/or documentation as well.
Copyright © 2015-present Andreas Kupries
Copyright © 2018-present Documentation, Andreas Kupries