mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Basic parser, fixed bug in tokenizer.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user