mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 20:10:25 +00:00
Added optional "pretty" printing.
This commit is contained in:
@@ -6,11 +6,15 @@ import (
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
func usage() {
|
||||
fmt.Println("Usage: asl [-v|-pretty]")
|
||||
}
|
||||
|
||||
func main() {
|
||||
// read test file
|
||||
code, _ := ioutil.ReadFile("in/simple.asl")
|
||||
token := asl.Tokenize(code)
|
||||
out := asl.Parse(token)
|
||||
out := asl.Parse(token, true)
|
||||
|
||||
fmt.Println("OUTPUT:\n"+out) // TODO: remove
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user