class Arborist::Grammar

Defined in:

grammar.cr
grammar_rules.cr
grammar_semantics.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(grammar_file_path : String) #

[View source]
def self.new #

[View source]

Instance Method Detail

def build_matcher(grammar_defn : String) : Matcher | Nil #

[View source]
def load_grammar(grammar_defn : String) #

[View source]
def load_grammar_file(path : String) #

[View source]
def parse(input_str : String, mode : Symbol = :ohm) : ParseTree | Nil #

[View source]
def parse(input_str : String, start_rule : String) : ParseTree | Nil #

[View source]
def parse_file(path : String, mode : Symbol = :ohm) #

[View source]
def print_match_failure_error #

[View source]
def rules #

[View source]