Class: L43Peg::Parser
- Inherits:
-
Object
- Object
- L43Peg::Parser
- Defined in:
- lib/l43_peg/parser.rb
Overview
A wrapper
Direct Known Subclasses
L43Peg::Parsers::CharParser, L43Peg::Parsers::EndParser, L43Peg::Parsers::FailureParser, L43Peg::Parsers::IntParser, L43Peg::Parsers::RgxParser, L43Peg::Parsers::TokenParser, L43Peg::Parsers::TokensParser, L43Peg::Parsers::VerbParser
Instance Attribute Summary collapse
-
#fn ⇒ Object
readonly
Returns the value of attribute fn.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#call(input, cache: L43Peg::Cache.new) ⇒ Object
Calls the parse function of this parser instance.
Instance Attribute Details
#fn ⇒ Object (readonly)
Returns the value of attribute fn.
7 8 9 |
# File 'lib/l43_peg/parser.rb', line 7 def fn @fn end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/l43_peg/parser.rb', line 7 def name @name end |