diff options
Diffstat (limited to '')
-rw-r--r-- | compiler/parser/tree.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/parser/tree.go b/compiler/parser/tree.go index b5fb723..04ba723 100644 --- a/compiler/parser/tree.go +++ b/compiler/parser/tree.go @@ -207,7 +207,7 @@ func newConcatNode(left, right CPTree) *concatNode { } func (n *concatNode) String() string { - return fmt.Sprintf("concat") + return "concat" } func (n *concatNode) Range() (rune, rune, bool) { @@ -258,7 +258,7 @@ func newAltNode(left, right CPTree) *altNode { } func (n *altNode) String() string { - return fmt.Sprintf("alt") + return "alt" } func (n *altNode) Range() (rune, rune, bool) { @@ -419,6 +419,7 @@ func (n *fragmentNode) clone() CPTree { return newFragmentNode(n.kind, n.tree.clone()) } +//nolint:unused func printCPTree(w io.Writer, t CPTree, ruledLine string, childRuledLinePrefix string) { if t == nil { return |