pegjs/lib/compiler/passes
David Majda d1fe86683b Improve location info in tracing events
Replace |line|, |column|, and |offset| properties of tracing events with
the |location| property. It contains an object similar to the one
returned by the |location| function available in action code:

  {
    start: { offset: 23, line: 5, column: 6 },
    end:   { offset: 25, line: 5, column: 8 }
  }

For the |rule.match| event, |start| refers to the position at the
beginning of the matched input and |end| refers to the position after
the end of the matched input.

For |rule.enter| and |rule.fail| events, both |start| and |end| refer to
the current position at the time the rule was entered.
2015-04-04 10:04:09 +02:00
..
generate-bytecode.js Rename |reportedPos| to |savedPos| 2015-04-03 16:26:34 +02:00
generate-javascript.js Improve location info in tracing events 2015-04-04 10:04:09 +02:00
remove-proxy-rules.js Simplify visitors by providing default visit functions 2014-06-04 07:41:00 +02:00
report-infinite-loops.js Implement infinite loop detection 2015-04-01 12:21:43 +02:00
report-left-recursion.js Extract the |matchesEmpty| visitor from the |reportLeftRecursion| pass 2015-04-01 12:20:48 +02:00
report-missing-rules.js Simplify visitors by providing default visit functions 2014-06-04 07:41:00 +02:00