package
0.0.0-20210827060341-983436007185
Repository: https://github.com/goruby/goruby.git
Documentation: pkg.go.dev
# Functions
IsEOFError returns true if err represents an unexpectedTokenError with its actual token type set to token.EOF.
IsEOFInsteadOfNewlineError returns true if err represents an unexpectedTokenError with its actual token type set to token.EOF and if its expected token types includes token.NEWLINE.
NewErrors returns a composite Error object wrapping multiple errors into one.
ParseExpr is a convenience function for obtaining the AST of an expression x.
ParseExprFrom is a convenience function for parsing an expression.
ParseFile parses the source code of a single Ruby source file and returns the corresponding ast.Program node.
# Constants
report all errors (not just the first 10 on different lines).
parse comments and add them to AST.
print a trace of parsed productions.
# Structs
Errors represents a group of errors and its context
Errors implements the error interface to be used as an error in the code.
# Type aliases
A Mode value is a set of flags (or 0).