We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450fd6e commit b4e634cCopy full SHA for b4e634c
src/lambda-calculus.js
@@ -1,6 +1,7 @@
1
/*
2
Lambda Calculus evaluator supporting:
3
- unlimited recursion
4
+ - call by need
5
- fast (ish?) evaluation
6
- shortform syntax
7
@@ -212,7 +213,7 @@ function parseWith(cfg={}) {
212
213
console.error(code);
214
console.error(' '.repeat(i) + '^');
215
console.error(msg + " at position " + i);
- throw new SyntaxError;
216
+ throw new SyntaxError(msg);
217
}
218
function sp(i) { while ( whitespace.test( code[i] || "" ) ) i++; return i; }
219
const expect = c => function(i) { return code[i]===c ? sp(i+1) : 0 ; } ;
0 commit comments