Skip to content

Commit

Permalink
Trying parser
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Mar 23, 2020
1 parent e0ffe74 commit aa63114
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions asset/parser/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import (
"go/ast"
"go/parser"
"go/token"
)

func main() {
fs := token.NewFileSet()
tr, _ := parser.ParseExpr("(3-1) * 5")
ast.Print(fs, tr)
}

0 comments on commit aa63114

Please sign in to comment.