You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
9 years ago
..
passes Improve location info available in action code 9 years ago
asts.js Extract the |matchesEmpty| visitor from the |reportLeftRecursion| pass 9 years ago
javascript.js Fix a bug in |stringEscape| 10 years ago
opcodes.js Implement additional PUSH_* bytecode instructions 10 years ago
visitor.js Reordering in visitors and their specs 10 years ago