diff options
author | EuAndreh <eu@euandre.org> | 2024-12-02 15:41:30 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-02 15:41:30 -0300 |
commit | ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1 (patch) | |
tree | 8e15b7188b153d8f85be7120f5370249286b6f17 /cmd/vartan/parse.go | |
parent | Setup Makefile project structure with empty src/urubu.go source (diff) | |
download | urubu-ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1.tar.gz urubu-ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1.tar.xz |
Build and test existing code as is
Diffstat (limited to 'cmd/vartan/parse.go')
-rw-r--r-- | cmd/vartan/parse.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd/vartan/parse.go b/cmd/vartan/parse.go index 8b3e34e..50d867e 100644 --- a/cmd/vartan/parse.go +++ b/cmd/vartan/parse.go @@ -7,10 +7,9 @@ import ( "os" "strings" - driver "github.com/nihei9/vartan/driver/parser" - spec "github.com/nihei9/vartan/spec/grammar" - "github.com/nihei9/vartan/tester" - "github.com/spf13/cobra" + driver "driver/parser" + spec "spec/grammar" + "tester" ) var parseFlags = struct { @@ -27,6 +26,7 @@ const ( outputFormatJSON = "json" ) +/* func init() { cmd := &cobra.Command{ Use: "parse <grammar file path>", @@ -42,8 +42,9 @@ func init() { parseFlags.format = cmd.Flags().StringP("format", "f", "text", "output format: one of text|tree|json") rootCmd.AddCommand(cmd) } +*/ -func runParse(cmd *cobra.Command, args []string) error { +func runParse(args []string) error { if *parseFlags.onlyParse && *parseFlags.cst { return fmt.Errorf("You cannot enable --only-parse and --cst at the same time") } |