class Marpa::Parser
- Marpa::Parser
- Reference
- Object
Defined in:
marpa.crmarpa/helpers.cr
Instance Method Summary
-
#metag_grammar
Internal representation of the BNF language.
-
#parse(rules : Hash(String, Array(Rule)), input : String, tag : Bool = false)
Parse input given NAIF rules.
-
#parse(rules : String, input : String, tag : Bool = false)
Parse input given BNF rules.
-
#stack_to_rules(stack)
Convert the output of a succesful parse to NAIF.
Instance Method Detail
Parse input given NAIF rules.
See #metag_grammar
for an example of this format,
or the original interface for
information on which this is based.