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
Base(PathBuf)The base path (without the .rs extension) of the output file
CanonicalConstruct a canonical Knuth LR(1) automaton
CompileErrors(PathBuf)Compile a .messages error file to Rust code
DumpDescribe the automaton in <basename>.automaton
ExplainExplain conflicts in <basename>.conflicts
GraphWrite grammar's dependency graph to <basename>.dot
LalrConstruct an LALR(1) automaton
LogAutomaton(usize)Log information about the automaton
LogCode(usize)Log information about the generated code
LogGrammar(usize)Log information about the grammar
NoInlineIgnore the %inline keyword
NoStdlibDo 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.
OnlyPreprocess(OnlyPreprocessOption)Only process the given stages and exit ; see OnlyPreprocessOption
Stdlib(PathBuf)Specify where the standard library lies
StrictWarnings about the grammar are errors
Suggest(SuggestOption)Suggest where various files are located ; see SuggestOption
TimingsDisplay internal timings
UnusedToken(String)Do not warn that the given token is unused
UnusedTokensDo not warn about any unused token
VersionShow version number and exit
VerboseSynonymous with Dump and Explain