Browse Source

update main to run parser

master
Brett Langdon 10 years ago
parent
commit
4b7b7c9955
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      main.go

+ 7
- 1
main.go View File

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

Loading…
Cancel
Save