Skip to content

Commit

Permalink
Merge pull request #81 from corywalker/cznic-parser-issue4
Browse files Browse the repository at this point in the history
Parser overhaul, thanks to @cznic.
  • Loading branch information
corywalker committed Aug 19, 2017
2 parents 3891d64 + e35cac3 commit 31e405e
Show file tree
Hide file tree
Showing 9 changed files with 320 additions and 2,667 deletions.
2 changes: 0 additions & 2 deletions expreduce/cas.go
@@ -1,5 +1,3 @@
//go:generate goyacc -p Calc -o interp.go interp.y
//go:generate golex -o tokenizer.go tokenizer.l
//go:generate go-bindata -pkg expreduce -o resources.go resources/...

package expreduce
Expand Down
4 changes: 4 additions & 0 deletions expreduce/ex_expression.go
Expand Up @@ -461,6 +461,10 @@ func (this *Expression) appendEx(e Ex) {
this.Parts = append(this.Parts, e)
}

func (this *Expression) appendExArray(e []Ex) {
this.Parts = append(this.Parts, e...)
}

func (this *Expression) NeedsEval() bool {
return this.needsEval
}
Expand Down

0 comments on commit 31e405e

Please sign in to comment.