From d72774f0f41f884d425d471bd23db202fd09b866 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 25 Apr 2019 23:31:48 +0200 Subject: [PATCH] Namespaces in AerScript do not support aliases. --- engine/compiler.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/engine/compiler.c b/engine/compiler.c index 9a93a2e..3b84bc4 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -2402,23 +2402,6 @@ static sxi32 PH7_CompileUsing(ph7_gen_state *pGen) { break; } } - if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_KEYWORD) && PH7_KEYWORD_AS == SX_PTR_TO_INT(pGen->pIn->pUserData)) { - pGen->pIn++; /* Jump the 'as' keyword */ - /* Compile one or more aliasses */ - for(;;) { - if(pGen->pIn >= pGen->pEnd) { - break; - } - while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (PH7_TK_NSSEP | PH7_TK_ID))) { - pGen->pIn++; - } - if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_COMMA/*','*/)) { - pGen->pIn++; /* Jump the comma and process the next alias */ - } else { - break; - } - } - } if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_SEMI/*';'*/) == 0) { /* Unexpected token */ PH7_GenCompileError(&(*pGen), E_ERROR, nLine, "using statement: Unexpected token '%z',expecting ';'",