Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EndOfFileError represents normal EOF error EndOfFileError // UnexpectedTokenError means that token is not what we expected UnexpectedTokenError // UnexpectedEndError means we get unexpected "end" keyword (this is mainly created for REPL) UnexpectedEndError // MethodDefinitionError means there's an error on method definition's method name MethodDefinitionError // InvalidAssignmentError means user assigns value to wrong type of expressions InvalidAssignmentError // SyntaxError means there's a grammatical in the source code SyntaxError // ArgumentError means there's a method parameter's definition error ArgumentError )
Enums for different kinds of syntax errors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error represents parser's parsing error
func NewArgumentError ¶
NewArgumentError is a helper function the helps initializing argument errors
func NewTypeParsingError ¶
NewTypeParsingError is a helper function the helps initializing type parsing errors
func (*Error) IsUnexpectedEnd ¶
IsUnexpectedEnd checks if error is unexpected "end" keyword error
Click to show internal directories.
Click to hide internal directories.