Basic parser, fixed bug in tokenizer.

This commit is contained in:
Marvin Blum
2015-09-21 14:46:39 +02:00
parent 651c7451d1
commit 9754def486
6 changed files with 154 additions and 7 deletions

View File

@@ -3,10 +3,14 @@ package main
import (
"io/ioutil"
"asl"
"fmt"
)
func main(){
// read test file
code, _ := ioutil.ReadFile("in/simple.asl")
asl.Tokenize(code)
token := asl.Tokenize(code)
out := asl.Parse(token)
fmt.Println(out)
}