Method: Packrat::InterpretingParser.parse_string
- Defined in:
- lib/packrat/grammar.rb
.parse_string(str, startSymbol = nil) ⇒ Object
477 478 479 480 481 |
# File 'lib/packrat/grammar.rb', line 477 def parse_string(str, startSymbol = nil) # We always add a whitespace since StringScanner cannot match /\s*/ # (typically used as whitespace) at EOS new(str + " ").parse_string(startSymbol) end |