Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOWEST int NORMAL LOGIC RANGE EQUALS COMPARE ASSIGN SUM PRODUCT PREFIX INDEX CALL )
Constants for denoting precedence
View Source
const ( // EndOfFileError represents normal EOF error EndOfFileError int // WrongTokenError means that token is not what we expected WrongTokenError // UnexpectedTokenError means that token is not expected to appear in current condition UnexpectedTokenError // UnexpectedEndError means we get unexpected "end" keyword (this is mainly created for REPL) UnexpectedEndError )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { // Message contains the readable message of error Message string // contains filtered or unexported fields }
Error represents parser's parsing error
func (*Error) IsUnexpectedEnd ¶
IsUnexpectedEnd checks if error is unexpected "end" keyword error
Click to show internal directories.
Click to hide internal directories.