From 4b7b7c9955d5e09b08349df83d364518465578c5 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 18 Sep 2015 21:20:12 -0400 Subject: [PATCH] update main to run parser --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 6b95bd4..192fb60 100644 --- a/main.go +++ b/main.go @@ -4,11 +4,12 @@ import ( "fmt" "os" + "github.com/brettlangdon/gython/parser" "github.com/brettlangdon/gython/scanner" "github.com/brettlangdon/gython/token" ) -func main() { +func tokenize() { tokenizer := scanner.NewScanner(os.Stdin) for { tok := tokenizer.NextToken() @@ -20,3 +21,8 @@ func main() { } } } + +func main() { + root := parser.ParseReader(os.Stdin) + fmt.Println(root) +}