diff options
Diffstat (limited to 'compiler/test_util_test.go')
-rw-r--r-- | compiler/test_util_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/test_util_test.go b/compiler/test_util_test.go new file mode 100644 index 0000000..7e6896d --- /dev/null +++ b/compiler/test_util_test.go @@ -0,0 +1,13 @@ +package compiler + +func newSymbolNodeWithPos(v byte, pos symbolPosition) *symbolNode { + n := newSymbolNode(v) + n.pos = pos + return n +} + +func newEndMarkerNodeWithPos(id int, pos symbolPosition) *endMarkerNode { + n := newEndMarkerNode(id) + n.pos = pos + return n +} |