diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-11-03 19:05:14 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-11-03 19:05:14 +0100 |
| commit | 6e2349e875e77d8af8b7d6f00f718db6813b40c1 (patch) | |
| tree | 74b476bc508264378fcb11bc7849658d76955f68 /main.go | |
| parent | 20d331813cf05f42961f0f6df531c2880f753a07 (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.go | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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 { |
