This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
v0.6.0
Added
-
sqlite-parser
demodemo/
folder containing interactive demo of parser. demo JavaScript is all in a self-contained, browserified packagebrowserify
task added toGruntfile.js
for creatingsqlite-parser-demo.js
indemo/
asgrunt demo
and a watcher/livereload version asgrunt interactive
CodeMirror
dependency intodevDependencies
- updated
TODO.md
and.npmignore
for new Interactive demo
-
sqlite-parser
distributablebrowserify
task added toGruntfile.js
for creatingsqlite-parser-dist.js
indist/
asgrunt dist
- attaches a single function to
window
assqliteParser
-
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 attracer.js
insrc/
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
andutil.js
files insrc/
andlib/
folders - pointing to latest
pegjs
master to get latestSyntaxError
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 thesmartError()
method ofTracer
There is a syntax error near FROM Clause [FROM Clause, Table Identifier]
Notes
- need to remove the
lodash
dependency fromTracer
before v1.0.0