//assert token.getType() == Token.RP; // )
}
- parseFunctionDeclaration : function(scope)
+ void parseFunctionDeclaration (scope)
{
//print("PARSE FUNCTION");
- var symbol;
- var token;
var fnScope = false;
- var identifier;
+
var b4braceNesting = this.braceNesting + 0;
//this.logR("<B>PARSING FUNCTION</B>");
- token = this.ts.nextTok();
+ var token = this.ts.nextTok();
if (token.type == "NAME") {
- if (this.mode == 'BUILDING_SYMBOL_TREE') {
+ if (this.mode == copeParserMode.BUILDING_SYMBOL_TREE) {
// Get the name of the function and declare it in the current scope.
symbol = token.data;
if (scope.getIdentifier(symbol,token) != false) {