diff options
Diffstat (limited to 'example/math_expression/main.go')
-rw-r--r-- | example/math_expression/main.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/example/math_expression/main.go b/example/math_expression/main.go index 35f7c3b..bfece39 100644 --- a/example/math_expression/main.go +++ b/example/math_expression/main.go @@ -1,3 +1,5 @@ +// +build example + package main import ( @@ -6,16 +8,6 @@ import ( "github.com/neonxp/unilex" ) -var output []unilex.Lexem = []unilex.Lexem{} -var opPriority = map[string]int{ - "^": 3, - "!": 3, - "*": 2, - "/": 2, - "+": 1, - "-": 1, -} - func main() { l := unilex.New("10 * (20.0 + 30.0)") |