Skip to content
Permalink
Browse files

Use correct imports for noast option fixes #93

  • Loading branch information
pointlander committed Dec 29, 2019
1 parent 169894c commit f24d28e959787acb2ec4c43d4b84db360659d827
Showing with 4 additions and 2 deletions.
  1. +4 −2 tree/peg.go
@@ -741,8 +741,10 @@ func escape(c string) string {

func (t *Tree) Compile(file string, args []string, out io.Writer) (err error) {
t.AddImport("fmt")
t.AddImport("io")
t.AddImport("os")
if t.Ast {
t.AddImport("io")
t.AddImport("os")
}
t.AddImport("sort")
t.AddImport("strconv")
t.EndSymbol = 0x110000

0 comments on commit f24d28e

Please sign in to comment.
You can’t perform that action at this time.