aboutsummaryrefslogtreecommitdiff
path: root/grammar
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-05-27 02:11:39 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-05-27 02:25:50 +0900
commit4c0f7eb15db566a19eb753e6ffc3a2354078f5fc (patch)
treef3956aa60561ede7d6ccfb288eabfd47de60ffe4 /grammar
parentAllows a directory to be specified as the --output option for the vartan-comp... (diff)
downloadurubu-4c0f7eb15db566a19eb753e6ffc3a2354078f5fc.tar.gz
urubu-4c0f7eb15db566a19eb753e6ffc3a2354078f5fc.tar.xz
Rename spec package to spec/grammar package
Diffstat (limited to 'grammar')
-rw-r--r--grammar/first_test.go2
-rw-r--r--grammar/grammar.go2
-rw-r--r--grammar/grammar_test.go2
-rw-r--r--grammar/lalr1_test.go2
-rw-r--r--grammar/lr0_test.go2
-rw-r--r--grammar/parsing_table.go2
-rw-r--r--grammar/parsing_table_test.go2
7 files changed, 7 insertions, 7 deletions
diff --git a/grammar/first_test.go b/grammar/first_test.go
index 134f4bd..5f128cc 100644
--- a/grammar/first_test.go
+++ b/grammar/first_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type first struct {
diff --git a/grammar/grammar.go b/grammar/grammar.go
index 2e0c8f4..65d232d 100644
--- a/grammar/grammar.go
+++ b/grammar/grammar.go
@@ -8,7 +8,7 @@ import (
mlcompiler "github.com/nihei9/maleeni/compiler"
mlspec "github.com/nihei9/maleeni/spec"
verr "github.com/nihei9/vartan/error"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type astActionEntry struct {
diff --git a/grammar/grammar_test.go b/grammar/grammar_test.go
index aeeffac..52c7fb8 100644
--- a/grammar/grammar_test.go
+++ b/grammar/grammar_test.go
@@ -5,7 +5,7 @@ import (
"testing"
verr "github.com/nihei9/vartan/error"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
func TestGrammarBuilderOK(t *testing.T) {
diff --git a/grammar/lalr1_test.go b/grammar/lalr1_test.go
index 2f8074b..d6d0371 100644
--- a/grammar/lalr1_test.go
+++ b/grammar/lalr1_test.go
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
func TestGenLALR1Automaton(t *testing.T) {
diff --git a/grammar/lr0_test.go b/grammar/lr0_test.go
index b31126e..0d0b134 100644
--- a/grammar/lr0_test.go
+++ b/grammar/lr0_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type expectedLRState struct {
diff --git a/grammar/parsing_table.go b/grammar/parsing_table.go
index fd490b0..e2ba5d0 100644
--- a/grammar/parsing_table.go
+++ b/grammar/parsing_table.go
@@ -4,7 +4,7 @@ import (
"fmt"
"sort"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type ActionType string
diff --git a/grammar/parsing_table_test.go b/grammar/parsing_table_test.go
index a699728..fe56722 100644
--- a/grammar/parsing_table_test.go
+++ b/grammar/parsing_table_test.go
@@ -5,7 +5,7 @@ import (
"strings"
"testing"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type expectedState struct {