Versions in this module Expand all Collapse all v0 v0.0.2 Oct 21, 2022 v0.0.1 Oct 21, 2022 Changes in this version + func ParseFile(fileSet *file.FileSet, filename string, src interface{}, mode Mode) (*ast.Program, error) + func ParseFileWithSourceMap(fileSet *file.FileSet, filename string, ...) (*ast.Program, error) + func ParseFunction(parameterList, body string) (*ast.FunctionLiteral, error) + func ReadSource(filename string, src interface{}) ([]byte, error) + func ReadSourceMap(filename string, src interface{}) (*sourcemap.Consumer, error) + func TransformRegExp(pattern string) (string, error) + type Error struct + Message string + Position file.Position + func (self Error) Error() string + type ErrorList []*Error + func (self *ErrorList) Add(position file.Position, msg string) + func (self *ErrorList) Reset() + func (self ErrorList) Err() error + func (self ErrorList) Error() string + func (self ErrorList) Len() int + func (self ErrorList) Less(i, j int) bool + func (self ErrorList) Sort() + func (self ErrorList) Swap(i, j int) + type Mode uint + const IgnoreRegExpErrors + const StoreComments + type Parser interface + Scan func() (tkn token.Token, literal string, idx file.Idx) + func NewParser(filename, src string) Parser