| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1 1 1 1 1 5 5 4 4 4 4 | (function(sc) {
"use strict";
require("./parser");
var Node = sc.lang.compiler.Node;
var Parser = sc.lang.compiler.Parser;
Parser.addParseMethod("BlockExpression", function() {
var marker = this.createMarker();
this.expect("(");
var expr = this.withScope(function() {
return Node.createBlockExpression(
this.parseFunctionBody()
);
});
this.expect(")");
return marker.update().apply(expr);
});
})(sc);
|