You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @yuroyoro!
Now, you server create AST from Go source.
Is possible add parsing string to Go AST expression?
Result of next example is AST of expression d*6*integer(r*8+ff,12,3):
package main
import (
"go/ast""go/parser""go/token"
)
funcmain() {
a, _:=parser.ParseExpr("d*6*integer(r*8+ff,12,3)")
ast.Print(token.NewFileSet(), a)
}
The text was updated successfully, but these errors were encountered:
Hello @yuroyoro!
Now, you server create AST from Go source.
Is possible add parsing string to Go AST expression?
Result of next example is AST of expression
d*6*integer(r*8+ff,12,3)
:The text was updated successfully, but these errors were encountered: