From a6001b32cf805c4e72e05adc37ee60272a600bf1 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 5 Nov 2022 16:52:37 +0900 Subject: Remove anonymous symbol system Remove unimportant features to tidy up the specification. --- spec/test/tree_semantic_action.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'spec/test/tree_semantic_action.go') diff --git a/spec/test/tree_semantic_action.go b/spec/test/tree_semantic_action.go index c426183..c1d5a25 100644 --- a/spec/test/tree_semantic_action.go +++ b/spec/test/tree_semantic_action.go @@ -341,11 +341,7 @@ func printTree(w io.Writer, node *Node, ruledLine string, childRuledLinePrefix s case NodeTypeError: fmt.Fprintf(w, "%v%v\n", ruledLine, node.KindName) case NodeTypeTerminal: - if node.KindName == "" { - fmt.Fprintf(w, "%v %v\n", ruledLine, strconv.Quote(node.Text)) - } else { - fmt.Fprintf(w, "%v%v %v\n", ruledLine, node.KindName, strconv.Quote(node.Text)) - } + fmt.Fprintf(w, "%v%v %v\n", ruledLine, node.KindName, strconv.Quote(node.Text)) case NodeTypeNonTerminal: fmt.Fprintf(w, "%v%v\n", ruledLine, node.KindName) -- cgit v1.2.3