module RPN
Defined in:
rpn.crrpn/lexer.cr
rpn/operators.cr
Constant Summary
-
ASCII_OPERATOR_TABLE =
begin table = Pointer(Operator).malloc(256, Operator::Invalid) Operator.values.each do |op| if op.ascii_code > 0 table[op.ascii_code] = op end end table end
-
VERSION =
"0.1.0"
Class Method Summary
- .[](op) : Operator
- .execute(rpn) : Float64
- .execute_infix(string)
- .execute_string(string)
- .from_infix(string) : Array(Operator | Float64)
- .from_string(string) : Array(Operator | Float64)