Class | Parslet::Source |
In: |
lib/parslet/source/line_cache.rb
lib/parslet/source.rb |
Parent: | Object |
Wraps the input string for parslet.
pos | [RW] | Position of the parse as a character offset into the original string. @note: Encodings… |
Returns a <line, column> tuple for the given position. If no position is given, line/column information is returned for the current position given by pos.