summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-11-03 19:05:14 +0100
committerMarc Vertes <mvertes@free.fr>2023-11-03 19:05:14 +0100
commit6e2349e875e77d8af8b7d6f00f718db6813b40c1 (patch)
tree74b476bc508264378fcb11bc7849658d76955f68 /main.go
parent20d331813cf05f42961f0f6df531c2880f753a07 (diff)
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.
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 0 insertions, 1 deletions
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 {