Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meyhem/go-simple-expression-eval
/ types & classes
Types & classes
11 in github.com/Meyhem/go-simple-expression-eval
⨍
Functions
60
◇
Types & classes
11
Struct
AstNode
ast.go:32
TypeAlias
AstNodeType
ast.go:5
Struct
EvalError
EvalError represents error during lexing, parsing or interpreting
errors.go:33
TypeAlias
EvalErrorType
EvalErrorType error code type
errors.go:6
TypeAlias
ItemType
ItemType is type of lexer items
lexer.go:10
Struct
LexItem
LexItem are items emitted by lexer
lexer.go:81
Struct
Lexer
Lexer class containing state of lexer
lexer.go:93
Struct
Stack
stack.go:3
FuncType
arithmeticFunc
Type of arithmetic function taking two ints and returning ints
interpreter.go:28
TypeAlias
interpretMap
type for mapping AST node types to corresponding arithmetic operation
interpreter.go:31
FuncType
stateFn
Type for lexing state machine, function returns another function which represents state transition
lexer.go:78