Module: Rattler::Grammar
- Included in:
- BackEnd::Compiler
- Defined in:
- lib/rattler/grammar.rb,
lib/rattler/grammar/grammar.rb,
lib/rattler/grammar/analysis.rb,
lib/rattler/grammar/grammar_dsl.rb,
lib/rattler/grammar/metagrammar.rb,
lib/rattler/grammar/grammar_parser.rb
Overview
The Grammar
module defines the grammar parser
Defined Under Namespace
Modules: GrammarDSL, Metagrammar Classes: Analysis, Grammar, GrammarParser
Class Method Summary collapse
-
.parse!(source, options = {}) ⇒ Grammar
Parse
source
as a grammar and raise a Runtime::SyntaxError if the parse fails. -
.parser(source, options = {}) ⇒ Grammar
Parse
source
as a grammar.
Class Method Details
.parse!(source, options = {}) ⇒ Grammar
Parse source
as a grammar and raise a Runtime::SyntaxError if the parse fails.
29 30 31 |
# File 'lib/rattler/grammar.rb', line 29 def self.parse!(source, ={}) GrammarParser.parse!(source, ={}) end |
.parser(source, options = {}) ⇒ Grammar
Parse source
as a grammar.
38 39 40 |
# File 'lib/rattler/grammar.rb', line 38 def self.parser(source, ={}) GrammarParser.new(source, ={}) end |