Implemented constant folding

This commit is contained in:
Eduard Urbach 2024-07-29 14:44:16 +02:00
parent 315ad23e31
commit 67c7d1ec99
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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.