Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintParserError ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseProgramFully ¶
Parses a full program, terminated by EOF
func (*Parser) ParseProgramOrReactionDefFully ¶
func (parser *Parser) ParseProgramOrReactionDefFully(store *eval.ReactionStore) (*ast.Program, *ast.ReactionPointer, error)
Parses a full program or reaction definition, terminated by EOF
type ParserError ¶
type ParserError struct { LexerCurrentLine int LexerCurrentColumn int // contains filtered or unexported fields }
Custom error wrapper which additionally contains information about the state of the lexer when the error occurred. (where in the src code caused the parsing error!)
func (*ParserError) Cause ¶
func (err *ParserError) Cause() error
func (*ParserError) Error ¶
func (err *ParserError) Error() string
func (*ParserError) Unwrap ¶
func (err *ParserError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.