Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsLetter ¶
ContainsLetter checks if a string contains a letter
func IsOperator ¶
func SolveFunction ¶
SolveFunction returns the answer of a function found within an expression
func SolvePostfix ¶
SolvePostfix evaluates and returns the answer of the expression converted to postfix
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ScanIgnoreWhitespace ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func (*Scanner) ScanNumber ¶
func (*Scanner) ScanWhitespace ¶
type Stack ¶
type Stack []Token
Stack is a LIFO data structure.
func ShuntingYard ¶
Click to show internal directories.
Click to hide internal directories.