summaryrefslogtreecommitdiff
path: root/src/tparse/tree-preproc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse/tree-preproc.go')
-rw-r--r--src/tparse/tree-preproc.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tparse/tree-preproc.go b/src/tparse/tree-preproc.go
index 8fec30c..2e56705 100644
--- a/src/tparse/tree-preproc.go
+++ b/src/tparse/tree-preproc.go
@@ -17,7 +17,7 @@
package tparse
func parsePreBlock (tokens *[]Token, tok, max int) (Node, int) {
- out := Node{IsBlock: true}
+ out := Node{}
out.Data = Token{Type: 11, Data: (*tokens)[tok].Data}
tok++
@@ -29,7 +29,7 @@ func parsePreBlock (tokens *[]Token, tok, max int) (Node, int) {
break
}
- tmp := Node{Data: t, IsBlock: false}
+ tmp := Node{Data: t}
out.Sub = append(out.Sub, tmp)
}
@@ -37,12 +37,12 @@ func parsePreBlock (tokens *[]Token, tok, max int) (Node, int) {
}
func parsePre (tokens *[]Token, tok, max int) (Node, int) {
- out := Node{IsBlock: false}
+ out := Node{}
out.Data = Token{Type: 11, Data: (*tokens)[tok].Data}
tok++
- tmp := Node{Data: (*tokens)[tok], IsBlock: false}
+ tmp := Node{Data: (*tokens)[tok]}
out.Sub = append(out.Sub, tmp)
tok++