From 2b06ed037dc077ead3bec979c206634bd42f1dbe Mon Sep 17 00:00:00 2001 From: Pascal Junck Date: Tue, 2 Nov 2004 10:54:14 +0000 Subject: INTEGRATION: CWS ab11clonepp4 (1.6.62); FILE MERGED 2004/10/15 08:39:06 ab 1.6.62.1: #118083# #118084# Class support PP4 -> SO 8 --- basic/source/comp/parser.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'basic/source/comp/parser.cxx') diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 74d848b8cd4d..128d74b0159c 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -2,9 +2,9 @@ * * $RCSfile: parser.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2004-03-17 13:33:25 $ + * last change: $Author: pjunck $ $Date: 2004-11-02 11:54:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -125,6 +125,7 @@ static SbiStatement StmntTable [] = { { OPTION, &SbiParser::Option, Y, N, }, // OPTION { PRINT, &SbiParser::Print, N, Y, }, // PRINT { PRIVATE, &SbiParser::Dim, Y, N, }, // PRIVATE +{ PROPERTY, &SbiParser::SubFunc, Y, N, }, // FUNCTION { PUBLIC, &SbiParser::Dim, Y, N, }, // PUBLIC { REDIM, &SbiParser::ReDim, N, Y, }, // DIM { RESUME, &SbiParser::Resume, N, Y, }, // RESUME @@ -172,6 +173,7 @@ SbiParser::SbiParser( StarBASIC* pb, SbModule* pm ) bNewGblDefs = bSingleLineIf = bExplicit = FALSE; + bClassModule = FALSE; pPool = &aPublics; for( short i = 0; i < 26; i++ ) eDefTypes[ i ] = SbxVARIANT; // Kein expliziter Defaulttyp @@ -440,7 +442,8 @@ BOOL SbiParser::Parse() // globalen Chain pflegen // AB #41606/#40689: Durch die neue static-Behandlung kann noch // ein nGblChain vorhanden sein, daher vorher abfragen - if( bNewGblDefs && ( eCurTok == SUB || eCurTok == FUNCTION ) && nGblChain == 0 ) + if( bNewGblDefs && nGblChain == 0 && + ( eCurTok == SUB || eCurTok == FUNCTION || eCurTok == PROPERTY ) ) { nGblChain = aGen.Gen( _JUMP, 0 ); bNewGblDefs = FALSE; @@ -702,6 +705,11 @@ void SbiParser::Option() AddConstants(); bCompatible = TRUE; break; + + case CLASSMODULE: + bClassModule = TRUE; + break; + default: Error( SbERR_BAD_OPTION, eCurTok ); } -- cgit