pegjs/lib/compiler/passes
David Majda 4f7145e360 Improve location info available in action code
Replace |line|, |column|, and |offset| functions with the |location|
function. It returns an object like this:

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

In actions, |start| refers to the position at the beginning of action's
expression and |end| refers to the position after the end of action's
expression. This allows one to easily add location info e.g. to AST
nodes created in actions.

In predicates, both |start| and |end| refer to the current position.

Fixes #246.
2015-04-03 16:26:34 +02:00
..
generate-bytecode.js Make labels behave like block-scoped variables 2015-02-13 14:10:32 +01:00
generate-javascript.js Improve location info available in action code 2015-04-03 16:26:34 +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