class Marpa::Parser
- Marpa::Parser
- Reference
- Object
Defined in:
marpa.crmarpa/helpers.cr
Instance Method Summary
-
#build_meta_grammar(actions)
Build up state given list
-
#parse(input : String, grammar : String, actions : Actions = Actions.new)
Parse
input
givengrammar
in BNF format. -
#parse(input : String, builder : Builder, actions : Actions = Actions.new)
Internal method used to parse the given input given computed grammar, Notated here as
builder
Instance Method Detail
Parse input
given grammar
in BNF format.
Accepts optional actions
that can be used to perform semantics
on given rules.
On successful parse, returns the parse tree
Internal method used to parse the given input given computed grammar,
Notated here as builder