class Marpa::Parser

Defined in:

marpa.cr
marpa/helpers.cr

Instance Method Summary

Instance Method Detail

def build_meta_grammar(actions) #

Build up state given list


[View source]
def parse(input : String, grammar : String, actions : Actions = Actions.new) #

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


[View source]
def parse(input : String, builder : Builder, actions : Actions = Actions.new) #

Internal method used to parse the given input given computed grammar, Notated here as builder


[View source]