X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=code%2Fparse.js;h=4d2bc8d6b027d3b40b96d12737b8c33b5fa11b3f;hp=6882d79f6d7a170a9dc5b71d74767a7dccd3f334;hb=492cb946fbc21f0d3db9de9bd57bd755bf4ca620;hpb=3de7188739d607c5430e6180497f7c9866bbcd2c diff --git a/code/parse.js b/code/parse.js index 6882d79f..4d2bc8d6 100644 --- a/code/parse.js +++ b/code/parse.js @@ -4,6 +4,9 @@ // http://javascript.crockford.com/tdop/index.html // Douglas Crockford 2010-06-26 +// See also http://effbot.org/zone/simple-top-down-parsing.htm + + /*jslint onevar: false */ @@ -65,6 +68,7 @@ var make_parse = function () { } }; + /* try { if (console && console.debug) { function print() { @@ -72,6 +76,7 @@ var make_parse = function () { } } } catch (e) {} + */ var symbol = function (id) { var s = symbol_table[id];