Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

v0.6.0

Compare
Choose a tag to compare
@nwronski nwronski released this 14 Jul 04:24
· 238 commits to master since this release

Added

  • sqlite-parser demo

    • demo/ folder containing interactive demo of parser. demo JavaScript is all in a self-contained, browserified package
    • browserify task added to Gruntfile.js for creating sqlite-parser-demo.js in demo/ as grunt demo and a watcher/livereload version as grunt interactive
    • CodeMirror dependency into devDependencies
    • updated TODO.md and .npmignore for new Interactive demo
  • sqlite-parser distributable

    • browserify task added to Gruntfile.js for creating sqlite-parser-dist.js in dist/ as grunt dist
    • attaches a single function to window as sqliteParser
  • some missing names for grammar rules

  • smarter error messages using rule descriptions and tracer functionality in newest pegjs

  • turned tracer/smart error code into a Tracer class located at tracer.js in src/

    var t = Tracer();
    return new Promise(function(resolve, reject) {
      resolve(parser.parse(source, {
        'tracer': t
      }));
    })
    .catch(function (err) {
      t.smartError(err);
    });

Changed

  • renamed parse.jsr and util.js files in src/ and lib/ folders
  • pointing to latest pegjs master to get latest SyntaxError format
  • parseError1.sql spec updated for new smarter error syntax
  • cleaned up smart error code to follow the most relevant error path of the pegjs trace output

Fixed

  • accidentally repeating first description in the error thrown from the smartError() method of Tracer

    There is a syntax error near FROM Clause [FROM Clause, Table Identifier]

Notes

  • need to remove the lodash dependency from Tracer before v1.0.0