Plato on Github
Report Home
lang/compiler/parser/envir-expr.js
Maintainability
122.90
Lines of code
23
Difficulty
6.61
Estimated Errors
0.12
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./parser"); var Node = sc.lang.compiler.Node; var Parser = sc.lang.compiler.Parser; /* EnvironmentExpression : ~ Identifier */ Parser.addParseMethod("EnvironmentExpression", function() { var marker = this.createMarker(); this.expect("~"); var expr = this.parseIdentifier({ variable: true }); return marker.update().apply( Node.createEnvironmentExpression(expr) ); }); })(sc);