feat: reducer works
This commit is contained in:
@@ -30,9 +30,9 @@ func main() {
|
||||
cli.HandleError(err)
|
||||
logger.Info("Parsed syntax tree.", "tree", lambda.Stringify(expression))
|
||||
|
||||
lambda.Normalize(&expression)
|
||||
cli.HandleError(err)
|
||||
logger.Info("Evaluated expression.", "tree", expression)
|
||||
for lambda.ReduceOnce(&expression) {
|
||||
logger.Info("Reduction.", "tree", lambda.Stringify(expression))
|
||||
}
|
||||
|
||||
fmt.Println(lambda.Stringify(expression))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user