From 6e2349e875e77d8af8b7d6f00f718db6813b40c1 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 3 Nov 2023 19:05:14 +0100 Subject: feat: add support for control flow operators in expressions Logical operators `&&` (and), `||` (or) are now parsed in expressions. The control flow tokens (labels, conditional jumps) are added accordingly. --- main.go | 1 - 1 file changed, 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 6994038..511b5ab 100644 --- a/main.go +++ b/main.go @@ -72,7 +72,6 @@ func run(arg []string) (err error) { args := rflag.Args() interp := parser.NewInterpreter(scanner.NewScanner(golang.GoSpec)) - interp.AddSym("println", fmt.Println) in := os.Stdin if len(args) > 0 { -- cgit v1.2.3