Implemented constant folding

This commit is contained in:
2024-07-29 14:44:16 +02:00
parent 8d4eb9935d
commit 5b1d456720
8 changed files with 118 additions and 1 deletions

View File

@ -12,6 +12,8 @@ type Expression struct {
Children []*Expression
Token token.Token
Precedence int8
Value int
IsFolded bool
}
// New creates a new expression.