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) +}