class CLTK::Parsers::PrefixCalc
Overview
A parser for a simple prefix calculator.
Defined in:
cltk/parsers/prefix_calc.crConstructors
-
.new
A parser for a simple prefix calculator.
Instance methods inherited from class CLTK::Parser
env
env,
parse(tokens)
parse
Class methods inherited from class CLTK::Parser
add_state(state)
add_state,
build_list_production(symbol, list_elements, separator = "")
build_list_production,
build_nonempty_list_production(symbol : String | Symbol, list_elements, separator = "")
build_nonempty_list_production,
c(expression, precedence = nil, arg_type = @@default_arg_type, &action : Array(Type), Environment -> _)
c,
check_reachability(start, dest, symbols)
check_reachability,
check_sanity
check_sanity,
clean
clean,
dat(type)
dat,
default_arg_type(type)
default_arg_type,
each_state(&)
each_state,
env
env,
finalize(opts : Opts = {explain: false, lookahead: true, precedence: true})
finalize,
get_io(o, mode = "w")
get_io,
grammar
grammar,
grammar_prime
grammar_prime,
inform_conflict(state_id, type, sym)
inform_conflict,
left(*symbols)
left,
lh_sides
lh_sides,
list(symbol, list_elements, separator = "")
list,
nonassoc(*symbols)
nonassoc,
nonempty_list(symbol, list_elements, separator = "")
nonempty_list,
p(symbol, expression = nil, precedence = nil, arg_type = @@default_arg_type, &action : Array(Type), Environment -> _)
p,
parse(tokens, opts : NamedTuple | Nil = nil)parse(tokens, opts = nil) parse, procs procs, prune(do_lookahead, do_precedence) prune, right(*symbols) right, setenv(env) setenv, start(symbol) start, states states, symbols symbols, token_hook(sym, &proc : Proc(Environment, Nil)) token_hook, token_hooks token_hooks, tupelize(name : Symbol)
tupelize(name : String = {{ @type.stringify }}) tupelize