Plato on Github
Report Home
lang/compiler/parser/hashed-expr.js
Maintainability
122.59
Lines of code
25
Difficulty
6.00
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./parser"); var Parser = sc.lang.compiler.Parser; /* HashedExpression : ImmutableListExpression ClosedFunctionExpression */ Parser.addParseMethod("HashedExpression", function() { var token = this.expect("#"); if (this.match("[")) { return this.unlex(token).parseImmutableListExpression(); } if (this.match("{")) { return this.unlex(token).parseClosedFunctionExpression(); } return this.throwUnexpected(token); }); })(sc);