Commits on Apr 14, 2011
  1. @dmajda

    Update version to 0.6.1

    dmajda committed Apr 14, 2011
  2. @dmajda

    Update CHANGELOG

    dmajda committed Apr 14, 2011
  3. @dmajda
  4. @dmajda

    Use --ascii option when generating a minified version

    This makes the minified version actually work and not cause syntax
    errors when loaded into a browser (this happened with Chrome and Firefox
    at least).
    dmajda committed Apr 14, 2011
  5. @dmajda
Commits on Apr 12, 2011
  1. @dmajda

    Rewrite README.md

    dmajda committed Apr 10, 2011
Commits on Apr 10, 2011
  1. @dmajda

    Quote keys in |parseFunctions| table in generated parsers

    IE and Nitro choked when rule names that are JavaScript reserved words
    (e.g. "class") were used.
    dmajda committed Apr 10, 2011
Commits on Apr 2, 2011
  1. @dmajda

    Update CHANGELOG

    dmajda committed Apr 2, 2011
  2. @dmajda

    Clean up package.json

    The engine's and dependencies' versions are the ones I've tested with.
    Lower version will probably work too, but I don't want to spend more
    time testing now so I'll play it safe.
    dmajda committed Apr 2, 2011
  3. @dmajda

    Fix @VERSION substitution in build-time preprocessing

    The code didn't work properly when multiple @VERSION strings were
    present in a preprocessed file.
    dmajda committed Apr 2, 2011
  4. @dmajda
  5. @dmajda

    Make "test" and "benchmark" Jakefile tasks depend on "build"

    This ensures the version tested/benchmarked is always up-to-date.
    dmajda committed Apr 2, 2011
  6. @dmajda
  7. @dmajda
  8. @dmajda
  9. @dmajda
  10. @dmajda

    Change Node.js pacakge name to from "peg" to "pegjs"

    The only place where we use the name without "js" is the library
    filename (peg.js) and consequently the module name (PEG).
    dmajda committed Apr 2, 2011
  11. @dmajda

    Change version to 0.6.0pre

    dmajda committed Apr 2, 2011
Commits on Mar 29, 2011
  1. @dmajda

    Add ability to start parsing from any grammar rule

    Calling the parsing function could have been done without the ugly table
    using |eval|, but this seemed to degrade performance significantly (by
    about 3 %). This is probably because engines optimize badly in presence
    of |eval|.
    
    The method used in this patch does not change the benchmark suite
    execution speed statistically significantly on V8.
    
    Detailed results (benchmark suite totals):
    
    ---------------------------------
     Test #     Before       After
    ---------------------------------
          1   38.24 kB/s   38.28 kB/s
          2   38.35 kB/s   38.15 kB/s
          3   38.43 kB/s   38.40 kB/s
          4   38.53 kB/s   38.20 kB/s
          5   38.25 kB/s   38.39 kB/s
    ---------------------------------
    Average   38.36 kB/s   38.39 kB/s
    ---------------------------------
    
    Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.1
    dmajda committed Mar 29, 2011
Commits on Feb 13, 2011
  1. @dmajda

    Require Node.js 0.4 or higher

    This is not strictly necessary now, but I won't test PEG.js with lower
    versions, so I can't guarantee correct functionality.
    dmajda committed Feb 13, 2011
  2. @dmajda

    bin/pegjs: Default parser variable name is "module.exports"

    The previous default name was "exports.parser". This meant that to use
    the generated parser in Node.js, you had to use code like this:
    
      var parser = require("./my-cool-parser").parser;
      parser.parse(...);
    
    Now you can shorten it a bit:
    
      var parser = require("./my-cool-parser");
      parser.parse(...);
    
    The shorter version makes sense since no other objects except the parser
    are exported from the module.
    dmajda committed Feb 13, 2011
  3. @dmajda
  4. @dmajda
  5. @dmajda

    Remove function wrapping and all |global| refrences from helpers.js

    Originally I wanted to be very explicit with accesses to global object,
    but since all this file is about extending it, the |global.| qualifier
    seems more like noise.
    dmajda committed Feb 13, 2011
  6. @dmajda

    Use Unicode box-drawing characters for command-line benchmark table

    Hopefully this works reasonably in all environments where Node.js runs.
    dmajda committed Feb 13, 2011
  7. @dmajda
Commits on Jan 26, 2011
  1. @dmajda

    Update copyright year in LICENSE

    dmajda committed Jan 26, 2011
  2. @dmajda
  3. @dmajda
  4. @dmajda
  5. @dmajda
  6. @dmajda
  7. @dmajda
  8. @dmajda
  9. @dmajda

    Small style fixes

    dmajda committed Jan 26, 2011