Class: Parslet::Expression::Treetop::Parser
- Inherits:
-
Parser
- Object
- Atoms::Base
- Parser
- Parslet::Expression::Treetop::Parser
- Defined in:
- lib/parslet/expression/treetop.rb
Constant Summary
Constants included from Atoms::Precedence
Atoms::Precedence::ALTERNATE, Atoms::Precedence::BASE, Atoms::Precedence::LOOKAHEAD, Atoms::Precedence::OUTER, Atoms::Precedence::REPETITION, Atoms::Precedence::SEQUENCE
Instance Method Summary collapse
Methods inherited from Parser
#accept, root, #to_citrus, #to_s_inner, #to_treetop, #try
Methods included from Parslet
any, exp, included, match, sequence, simple, str, subtree
Methods inherited from Atoms::Base
#accept, #apply, #inspect, #parse, #parse_with_debug, precedence, #setup_and_apply, #to_s, #try
Methods included from Atoms::CanFlatten
#flatten, #flatten_repetition, #flatten_sequence, #foldl, #merge_fold, #warn_about_duplicate_keys
Methods included from Atoms::DSL
#>>, #absent?, #as, #maybe, #present?, #repeat, #|
Instance Method Details
#spaced(str) ⇒ Object
67 68 69 |
# File 'lib/parslet/expression/treetop.rb', line 67 def spaced(str) str(str) >> space? end |