Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsLetter ¶
ContainsLetter checks if a string contains a letter
func SolveFunction ¶
SolveFunction returns the answer of a function found within an expression
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
type Stack ¶
type Stack struct {
Values []Token
}
Stack is a LIFO data structure
func (*Stack) EmptyInto ¶
EmptyInto dumps all tokens from one stack to another
func (*Stack) IsEmpty ¶
IsEmpty checks if there are any tokens in the stack
func (*Stack) Length ¶
Length returns the amount of tokens in the stack
func (*Stack) Pop ¶
Pop removes the token at the top of the stack and returns its value
Click to show internal directories.
Click to hide internal directories.