Skip to main content

GRAMMAR_COMMAND_USAGE

Constant GRAMMAR_COMMAND_USAGE 

Source
pub const GRAMMAR_COMMAND_USAGE: &str = "usage: meta-language grammar <command> [options]

commands:
  formats
      list the import and export formats
  import --from FORMAT FILE
      print the grammar as a native listing
  validate --from FORMAT FILE
      report grammar diagnostics; exit 1 when one is an error
  convert --from FORMAT --to FORMAT FILE
      translate a grammar to another format; lossy steps go to standard error
  export --to FORMAT FILE
      export a native listing to another format
  merge --source FORMAT:FILE... [--language NAME] [--require A=B]... [--to FORMAT]
      merge grammars of one language; earlier sources take precedence
  rename --from FORMAT --rule OLD --name NEW [--namespace NS] [--to FORMAT] FILE
      rename a rule and every reference to it
  round-trip --from FORMAT [--accept TEXT]... [--reject TEXT]... FILE
      export and re-import a mutated grammar; exit 1 when it is not preserved
  help
      print this help

exit status: 0 success, 1 a problem was found, 2 a usage or input error
";
Expand description

The help text of meta-language grammar, the same in both runtimes.