X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=code%2Fparse.js;h=8db784d5ba71e8c36e91863b1df669bd82f06240;hp=4d2bc8d6b027d3b40b96d12737b8c33b5fa11b3f;hb=3e0b51e85f40d00ead16639860d7723b5f40e511;hpb=53455875b3b1b72c8c0001408ab789f6954c2326;ds=sidebyside diff --git a/code/parse.js b/code/parse.js index 4d2bc8d6..8db784d5 100644 --- a/code/parse.js +++ b/code/parse.js @@ -233,9 +233,11 @@ var make_parse = function () { return t; } else { t.first = []; - while (token.arity === "name") { - t.first.push(n); - n = token; + while (token.arity === "name" || token.id === "\\" || token.id === "lambda") { + if (not (token.id === "\\" || token.id === "lambda") { + t.first.push(n); + n = token; + } advance(); } if (token.arity === "literal" && t.first.length === 0) {