Documentation ¶
Overview ¶
Package parser is the package which parses our input.
Given a lexer, wrapping a given input-file, we parse tokens from it into a series of statements which we then return for processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// Our tokenizer.
Tokenizer tokenizer
}
Parser holds our internal state.
func New ¶
func New(tk tokenizer) *Parser
New returns a new Parser object, consuming tokens from the specified tokenizer-interface.
func (*Parser) GetArguments ¶
GetArguments fetches arguments from the lexer, ensuring they're the expected types.
Click to show internal directories.
Click to hide internal directories.