Implemented constant folding
This commit is contained in:
parent
315ad23e31
commit
67c7d1ec99
8 changed files with 118 additions and 1 deletions
|
@ -12,6 +12,8 @@ type Expression struct {
|
|||
Children []*Expression
|
||||
Token token.Token
|
||||
Precedence int8
|
||||
Value int
|
||||
IsFolded bool
|
||||
}
|
||||
|
||||
// New creates a new expression.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue