Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Mar 6, 2012
  1. @dmajda

    Make current parse position visible in actions and predicates

    dmajda authored
    The speed/size impact is insignificant.
    
    Speed impact
    ------------
    Before:     214.11 kB/s
    After:      214.87 kB/s
    Difference: 0.35%
    
    Size impact
    -----------
    Before:     1042691 b
    After:      1046731 b
    Difference: 0.38%
    
    (Measured by /tools/impact with Node.js v0.6.6 on x86_64 GNU/Linux.)
  2. @dmajda
Commits on Mar 4, 2012
  1. @dmajda

    AST: Store rules in an array instead of an object

    dmajda authored
    This simplifies the code a bit and makes the AST more regular (each node
    type has a fixed set of properties). The latter may get useful later
    when generalizing visitors.
  2. @dmajda

    Replace Jakefile with Makefile

    dmajda authored
    Doing scripting tasks in JavaScript is painful.
  3. @dmajda

    Fix |quote| visibility in generated parsers

    dmajda authored
    |quote| is used outside of the |parse| function so it must be defined in
    more outer scope.
    
    Fixes a problem (introduced in e9d8dc8)
    where construction of some error messages could throw an error.
Commits on Feb 27, 2012
  1. @dmajda

    Semantic predicates now have access to preceding labels

    dmajda authored
    Part of a fix for GH-69.
  2. @dmajda

    Move param computations from the emitter into a separate pass

    dmajda authored
    This has two main benefits:
    
      1. The knowledge about scoping params in at one designated place,
         making all future adjustments in this area easier.
    
      2. Action-related code does not handle sequences specially anymore.
         Such knowledge/behavior doesn't belong there.
  3. @dmajda

    Consolidate all variable name computations into one compiler pass

    dmajda authored
    Before this change, knowledge about variable names was spread between
    the |computeStackDepths| pass and the code emitter code. For example,
    the fact that the |&...| expression needs one variable to store a
    position was represented in both places.
    
    This changes consolidates that knowledge and introduces a new
    |computeVarNames| pass. This pass replaces old |computeStackDepths|
    pass, does all computations realted to variable names and stores the
    results in the AST. Note that some knowledge about variables
    (inevitably) remained in emitter code templates.
    
    Beside DRYing things up, this change simplifies the emitter
    significantly. By storing variable names in the AST it also allows
    introduction of a pass that will identify parameters passed to actions
    using proper symbol tables. Right now, this is done in a hackish way
    directly in the emitter, which won't work well with changes planned in
    GH-69.
Commits on Feb 13, 2012
  1. @dmajda
  2. @dmajda

    Remove comment about IE in |quoteForRegexpClass|

    dmajda authored
    We escape null for general compatibility (see comment at the top of the
    function), not only because of IE.
Commits on Feb 12, 2012
  1. @dmajda

    /bin/pegjs: Avoid calling |process.openStdin|

    dmajda authored
    While |process.openStdin| is not officially deprecated, it's no longer
    documented and just using |process.stdin| and resuming it seems to be
    the official way.
  2. @dmajda

    /bin/pegjs: Don't close standard output

    dmajda authored
    Avoids "Error: process.stdout cannot be closed" error when invoked
    without file arguments.
  3. @dmajda
  4. @dmajda

    Add |expected| and |found| properties to exceptions thrown by parsers

    dmajda authored
    Based on a patch by Marcin Stefaniuk (marcin@stefaniuk.info).
  5. @dmajda
  6. @dmajda

    Add |offset| property to exceptions thrown by parsers

    dmajda authored
    Based on a patch by Marcin Stefaniuk (marcin@stefaniuk.info).
Commits on Feb 4, 2012
  1. @dmajda
Commits on Jan 11, 2012
  1. @dmajda

    Merge pull request #59 from jasondavies/typo

    dmajda authored
    Fix typo in comment.
Commits on Jan 9, 2012
  1. @dmajda
Commits on Jan 7, 2012
  1. @dmajda

    Use |util| module instead of |sys|

    dmajda authored
    |sys| emits a warning in Node.js 0.6.x.
  2. @dmajda

    Update version of Node.js and development dependencies in package.json

    dmajda authored
    The new versions are the ones I test with.
Commits on Oct 9, 2011
  1. @jasondavies

    Fix typo in comment.

    jasondavies authored
Commits on Oct 3, 2011
  1. @dmajda
  2. @dmajda
  3. @dmajda
  4. @dmajda

    Unify checks and passes

    dmajda authored
    There is no real reason to have them separated.
  5. @dmajda
  6. @dmajda

    Rename |reportMissingReferencedRules| check to |reportMissingRules|

    dmajda authored
    The new name is shorter, there is no real loss of meaning.
  7. @dmajda
Commits on Oct 1, 2011
  1. @dmajda
  2. @dmajda
  3. @dmajda
  4. @dmajda
Commits on Sep 30, 2011
  1. @dmajda

    Fix stack depth computations for empty sequences

    dmajda authored
    Part of a fix for GH-53.
  2. @dmajda

    Fix |posStackDepth| computation for rules

    dmajda authored
    Rules by themselves do not need any variable for storing position.
    
    Part of a fix for GH-53.
Something went wrong with that request. Please try again.