class CLTK::Parsers::PostfixCalc

Overview

A parser for a simple post-fix calculator.

Defined in:

cltk/parsers/postfix_calc.cr

Constructors

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

Class methods inherited from module CLTK::Parser::Explain

explain(io : IO) explain

Instance methods inherited from class Object

in?(collection : Array | Set) in?

Constructor Detail

def self.new #

A parser for a simple post-fix calculator.


[View source]