From d128362951c311b0ce04a097561375a84169b018 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 15 Dec 2024 11:07:04 -0500 Subject: [PATCH] Removes main --- main/main.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 main/main.go diff --git a/main/main.go b/main/main.go deleted file mode 100644 index bcd8e05..0000000 --- a/main/main.go +++ /dev/null @@ -1,23 +0,0 @@ -package main - -import ( - "fmt" - "github.com/mtresnik/goast/pkg/goast" - "github.com/mtresnik/goast/pkg/operations/functions" -) - -func main() { - TestParse() -} - -func TestParse() { - var inputString = "a * b * c + 123 + sin(x)" - var parsed, err = goast.ParseOperation(inputString) - if err != nil { - fmt.Println((*err).Error()) - return - } - fmt.Println(parsed.String()) - parsed = parsed.Evaluate(goast.X, functions.Division{Numerator: goast.PI, Denominator: goast.TWO}) - fmt.Println(parsed.String()) -}