diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-09 02:38:12 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-12-10 01:50:32 +0900 |
commit | d595194791483a71c5afaff2aa3f4b575a9d22b7 (patch) | |
tree | 65477d9fab1db2b9ded5eeda8a14ce0b235718b5 /compiler/test_util_test.go | |
parent | Add a new DFA compiler that generates DFA from a set of CPTree (diff) | |
download | tre-d595194791483a71c5afaff2aa3f4b575a9d22b7.tar.gz tre-d595194791483a71c5afaff2aa3f4b575a9d22b7.tar.xz |
Use new parser and DFA compiler
Diffstat (limited to '')
-rw-r--r-- | compiler/test_util_test.go | 21 |
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 -} |