Enum menhir::MenhirOption [] [src]

pub enum MenhirOption {
    Base(PathBuf),
    Canonical,
    CompileErrors(PathBuf),
    Dump,
    Explain,
    Graph,
    Lalr,
    LogAutomaton(usize),
    LogCode(usize),
    LogGrammar(usize),
    NoInline,
    NoStdlib,
    OnlyPreprocess(OnlyPreprocessOption),
    Stdlib(PathBuf),
    Strict,
    Suggest(SuggestOption),
    Timings,
    UnusedToken(String),
    UnusedTokens,
    Version,
    Verbose,
}

An option (flag) to be passed to the Menhir generator

Variants

The base path (without the .rs extension) of the output file

Construct a canonical Knuth LR(1) automaton

Compile a .messages error file to Rust code

Describe the automaton in <basename>.automaton

Explain conflicts in <basename>.conflicts

Write grammar's dependency graph to <basename>.dot

Construct an LALR(1) automaton

Log information about the automaton

Log information about the generated code

Log information about the grammar

Ignore the %inline keyword

Do not load the standard library

This is currently the default for the Rust backend when using process_file and compile_errors since the standard library has not been ported to Rust yet. You may want to use Stdlib if you want to load your own standard library.

Only process the given stages and exit ; see OnlyPreprocessOption

Specify where the standard library lies

Warnings about the grammar are errors

Suggest where various files are located ; see SuggestOption

Display internal timings

Do not warn that the given token is unused

Do not warn about any unused token

Show version number and exit

Synonymous with Dump and Explain