aboutsummaryrefslogtreecommitdiff
path: root/driver
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 /driver
parentAllows a directory to be specified as the --output option for the vartan-comp... (diff)
downloadcotia-4c0f7eb15db566a19eb753e6ffc3a2354078f5fc.tar.gz
cotia-4c0f7eb15db566a19eb753e6ffc3a2354078f5fc.tar.xz
Rename spec package to spec/grammar package
Diffstat (limited to 'driver')
-rw-r--r--driver/conflict_test.go2
-rw-r--r--driver/lac_test.go2
-rw-r--r--driver/parser_test.go2
-rw-r--r--driver/semantic_action_test.go2
-rw-r--r--driver/spec.go2
-rw-r--r--driver/syntax_error_test.go2
-rw-r--r--driver/template.go2
-rw-r--r--driver/token_stream.go2
8 files changed, 8 insertions, 8 deletions
diff --git a/driver/conflict_test.go b/driver/conflict_test.go
index 93a8111..3b0c5fb 100644
--- a/driver/conflict_test.go
+++ b/driver/conflict_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/nihei9/vartan/grammar"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
func TestParserWithConflicts(t *testing.T) {
diff --git a/driver/lac_test.go b/driver/lac_test.go
index d850e9b..2274583 100644
--- a/driver/lac_test.go
+++ b/driver/lac_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/nihei9/vartan/grammar"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
func TestParserWithLAC(t *testing.T) {
diff --git a/driver/parser_test.go b/driver/parser_test.go
index bec6a51..5c7addd 100644
--- a/driver/parser_test.go
+++ b/driver/parser_test.go
@@ -6,7 +6,7 @@ import (
"testing"
"github.com/nihei9/vartan/grammar"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
func termNode(kind string, text string, children ...*Node) *Node {
diff --git a/driver/semantic_action_test.go b/driver/semantic_action_test.go
index d480a0a..3d5f711 100644
--- a/driver/semantic_action_test.go
+++ b/driver/semantic_action_test.go
@@ -6,7 +6,7 @@ import (
"testing"
"github.com/nihei9/vartan/grammar"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type testSemAct struct {
diff --git a/driver/spec.go b/driver/spec.go
index 195cb8c..dda1251 100644
--- a/driver/spec.go
+++ b/driver/spec.go
@@ -1,6 +1,6 @@
package driver
-import "github.com/nihei9/vartan/spec"
+import spec "github.com/nihei9/vartan/spec/grammar"
type grammarImpl struct {
g *spec.CompiledGrammar
diff --git a/driver/syntax_error_test.go b/driver/syntax_error_test.go
index a004a44..1480390 100644
--- a/driver/syntax_error_test.go
+++ b/driver/syntax_error_test.go
@@ -6,7 +6,7 @@ import (
"testing"
"github.com/nihei9/vartan/grammar"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
func TestParserWithSyntaxErrors(t *testing.T) {
diff --git a/driver/template.go b/driver/template.go
index 459b6e0..5ff3aa5 100644
--- a/driver/template.go
+++ b/driver/template.go
@@ -13,7 +13,7 @@ import (
"strings"
"text/template"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
//go:embed parser.go
diff --git a/driver/token_stream.go b/driver/token_stream.go
index 97c9f1f..dd2c482 100644
--- a/driver/token_stream.go
+++ b/driver/token_stream.go
@@ -4,7 +4,7 @@ import (
"io"
mldriver "github.com/nihei9/maleeni/driver"
- "github.com/nihei9/vartan/spec"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type vToken struct {