class

Arborist::Grammar

Inherits Reference / Object

Constructors

new(grammar_file_path : String)
Source

Instance methods

build_matcher(grammar_defn : String) : Matcher | Nil
Source
load_grammar(grammar_defn : String)
Source
load_grammar_file(path : String)
Source
parse(input_str : String, mode : Symbol = :ohm) : ParseTree | Nil
Source
parse(input_str : String, start_rule : String) : ParseTree | Nil
Source
parse_file(path : String, mode : Symbol = :ohm)
Source
rules
Source

Nested types