aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/vartan/compile.go2
-rw-r--r--cmd/vartan/root.go7
2 files changed, 4 insertions, 5 deletions
diff --git a/cmd/vartan/compile.go b/cmd/vartan/compile.go
index 9c37b91..69de14b 100644
--- a/cmd/vartan/compile.go
+++ b/cmd/vartan/compile.go
@@ -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,
diff --git a/cmd/vartan/root.go b/cmd/vartan/root.go
index a193577..8d2219d 100644
--- a/cmd/vartan/root.go
+++ b/cmd/vartan/root.go
@@ -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,
}