parser: accepts espression forest (multi expressions)
This commit is contained in:
@@ -81,6 +81,11 @@ func (self *parser) parse(scanner *scanner, termSymbols ...Symbol) (tree *ast, e
|
||||
continue
|
||||
}
|
||||
|
||||
if tk.Sym == SymSemiColon {
|
||||
tree.ToForest()
|
||||
continue
|
||||
}
|
||||
|
||||
//fmt.Println("Token:", tk)
|
||||
if firstToken && (tk.Sym == SymMinus || tk.Sym == SymPlus) {
|
||||
if tk.Sym == SymMinus {
|
||||
|
||||
Reference in New Issue
Block a user