Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineStringType ¶
DetermineStringType will determine the type of a given string
func GetPrec ¶
GetPrec is a simple wrapper for GetOperatorAttributes but only returns the precedance
func IsLitteral ¶
IsLitteral checks if a given token is a litteral type
func ThrowSemanticError ¶
ThrowSemanticError can be used when an error occurs while generating an AST and not at interpret time
Types ¶
type Lexer ¶
type Lexer struct { Tokens []Token FileName, Program string // contains filtered or unexported fields }
Lexer contains all the info needed for the lexer to generate a set of usable tokens
type OperatorAttributes ¶
OperatorAttributes wraps the precedance and Associativity of a operator
func GetOperatorAttributes ¶
func GetOperatorAttributes(operator string) OperatorAttributes
GetOperatorAttributes returns the precedance and associativity of an operator
Click to show internal directories.
Click to hide internal directories.