Class: Fabulator::Grammar::Actions::Token
- Inherits:
-
Structural
- Object
- Structural
- Fabulator::Grammar::Actions::Token
- Defined in:
- lib/fabulator/grammar/actions/token.rb
Instance Method Summary collapse
Instance Method Details
#compile_xml(xml, ctx = nil) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/fabulator/grammar/actions/token.rb', line 12 def compile_xml(xml, ctx = nil) super parser = Fabulator::Grammar::TokenParser.new # parse @matches @c_matches = parser.parse(self.matches) end |
#parse(cursor) ⇒ Object
21 22 23 |
# File 'lib/fabulator/grammar/actions/token.rb', line 21 def parse(cursor) @c_matches.parse(cursor) end |