Module: Sexpr::Grammar
- Defined in:
- lib/sexpr/grammar.rb,
lib/sexpr/grammar/options.rb,
lib/sexpr/grammar/parsing.rb,
lib/sexpr/grammar/tagging.rb,
lib/sexpr/grammar/matching.rb
Defined Under Namespace
Modules: Matching, Options, Parsing, Tagging
Instance Attribute Summary
Attributes included from Options
#options, #parser, #path, #root, #rules
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Parsing
#default_parse_options, #parse
Methods included from Tagging
#default_tagging_module, #looks_a_sexpr?, #mod2rulename, #rule2modname, #sexpr, #tagging_module_for
Methods included from Matching
Methods included from Options
#compile_rules, #install_options, #install_parser, #install_path, #install_root, #install_rules, #option
Class Method Details
.new(input = {}, options = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/sexpr/grammar.rb', line 12 def self.new(input = {}, = {}) Module.new.tap{|g| g.instance_eval{ include(Grammar) extend(self) (input.merge()) } } end |
Instance Method Details
#tagging_reference ⇒ Object
22 23 24 |
# File 'lib/sexpr/grammar.rb', line 22 def tagging_reference self end |