Wrote function to create a character node regardless of the contents of the node
This commit is contained in:
@@ -47,3 +47,11 @@ func newPostfixNode(contents ...rune) postfixNode {
|
|||||||
}
|
}
|
||||||
return to_return
|
return to_return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Creates a character node, regardless of the contents
|
||||||
|
func newPostfixCharNode(contents ...rune) postfixNode {
|
||||||
|
toReturn := postfixNode{}
|
||||||
|
toReturn.nodetype = CHARACTER
|
||||||
|
toReturn.contents = append(toReturn.contents, contents...)
|
||||||
|
return toReturn
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user