aboutsummaryrefslogtreecommitdiff
path: root/compiler/test_util_test.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-12-09 02:38:12 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-12-10 01:50:32 +0900
commitd595194791483a71c5afaff2aa3f4b575a9d22b7 (patch)
tree65477d9fab1db2b9ded5eeda8a14ce0b235718b5 /compiler/test_util_test.go
parentAdd a new DFA compiler that generates DFA from a set of CPTree (diff)
downloadtre-d595194791483a71c5afaff2aa3f4b575a9d22b7.tar.gz
tre-d595194791483a71c5afaff2aa3f4b575a9d22b7.tar.xz
Use new parser and DFA compiler
Diffstat (limited to '')
-rw-r--r--compiler/test_util_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/compiler/test_util_test.go b/compiler/test_util_test.go
deleted file mode 100644
index 72e150b..0000000
--- a/compiler/test_util_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package compiler
-
-import "github.com/nihei9/maleeni/spec"
-
-func newRangeSymbolNodeWithPos(from, to byte, pos symbolPosition) *symbolNode {
- n := newRangeSymbolNode(from, to)
- n.pos = pos
- return n
-}
-
-func newSymbolNodeWithPos(v byte, pos symbolPosition) *symbolNode {
- n := newSymbolNode(v)
- n.pos = pos
- return n
-}
-
-func newEndMarkerNodeWithPos(id int, pos symbolPosition) *endMarkerNode {
- n := newEndMarkerNode(spec.LexModeKindID(id))
- n.pos = pos
- return n
-}