aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar/parser/parser.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spec/grammar/parser/parser.go (renamed from spec/grammar/parser.go)6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/grammar/parser.go b/spec/grammar/parser/parser.go
index 27a7c7d..c0179a6 100644
--- a/spec/grammar/parser.go
+++ b/spec/grammar/parser/parser.go
@@ -1,11 +1,11 @@
-package grammar
+package parser
import (
"fmt"
"io"
- mlspec "github.com/nihei9/maleeni/spec"
verr "github.com/nihei9/vartan/error"
+ spec "github.com/nihei9/vartan/spec/grammar"
)
type RootNode struct {
@@ -247,7 +247,7 @@ func (p *parser) parseFragment() *FragmentNode {
case p.consume(tokenKindTerminalPattern):
rhs = p.lastTok.text
case p.consume(tokenKindStringLiteral):
- rhs = mlspec.EscapePattern(p.lastTok.text)
+ rhs = spec.EscapePattern(p.lastTok.text)
default:
raiseSyntaxError(p.pos.Row, synErrFragmentNoPattern)
}