Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LOWEST == 1 default precedence LOWEST int // EQUALS == 2 precedence for operators [==,!=] EQUALS // LESSGREATER == 3 precedence for operators [>,<,>=,<=] LESSGREATER // SUM == 4 precedence for operators [+,"infixed" -] SUM // PRODUCT == 5 precedence for operators [*,/] PRODUCT // PREFIX == 6 precedence for operators ["prefixed" -,!] PREFIX // CALL == 7 precedence for operator ( CALL // INDEX == 8 precedence for "[x]" opertor INDEX )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser structure represents the semantic analyzer.
func (*Parser) ParseProgram ¶
ParseProgram starts the actual analysis of Lexer's program.
Click to show internal directories.
Click to hide internal directories.