Skip to content

Commit

Permalink
Fix help documents
Browse files Browse the repository at this point in the history
  • Loading branch information
nihei9 committed Apr 2, 2022
1 parent 0636432 commit 180cac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/vartan/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var compileFlags = struct {
func init() {
cmd := &cobra.Command{
Use: "compile",
Short: "Compile a grammar into a parsing table",
Short: "Compile grammar you defined into a parsing table",
Example: ` vartan compile grammar.vr -o grammar.json`,
Args: cobra.MaximumNArgs(1),
RunE: runCompile,
Expand Down
7 changes: 3 additions & 4 deletions cmd/vartan/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import (

var rootCmd = &cobra.Command{
Use: "vartan",
Short: "Generate a portable parsing table from a grammar",
Short: "Generate a portable LALR(1) parsing table from grammar you defined",
Long: `vartan provides two features:
- Generates a portable parsing table from a grammar.
- Tokenizes a text stream according to the grammar.
This feature is primarily aimed at debugging the grammar.`,
- Generate a portable LALR(1) parsing table from grammar you defined.
- Parse a text stream according to the grammar.`,
SilenceErrors: true,
SilenceUsage: true,
}
Expand Down

0 comments on commit 180cac3

Please sign in to comment.