mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-06-02 18:11:10 +00:00
regenerated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18161 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
424dbfd511
commit
67022a8afc
6 changed files with 162 additions and 95 deletions
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "GSWeb.h"
|
#include <GSWeb/GSWeb.h>
|
||||||
|
|
||||||
|
|
||||||
#include "gsantlr/ANTLRCommon.h"
|
#include "gsantlr/ANTLRCommon.h"
|
||||||
|
@ -49,6 +49,7 @@
|
||||||
/*public: */-(void) mCOLUMNWithCreateToken:(BOOL)_createToken ;
|
/*public: */-(void) mCOLUMNWithCreateToken:(BOOL)_createToken ;
|
||||||
/*public: */-(void) mASSIGNWithCreateToken:(BOOL)_createToken ;
|
/*public: */-(void) mASSIGNWithCreateToken:(BOOL)_createToken ;
|
||||||
/*public: */-(void) mQUESTIONMARKWithCreateToken:(BOOL)_createToken ;
|
/*public: */-(void) mQUESTIONMARKWithCreateToken:(BOOL)_createToken ;
|
||||||
|
/*public: */-(void) mEXCLAMATIONMARKWithCreateToken:(BOOL)_createToken ;
|
||||||
/*public: */-(void) mWSWithCreateToken:(BOOL)_createToken ;
|
/*public: */-(void) mWSWithCreateToken:(BOOL)_createToken ;
|
||||||
/*protected: */-(void) mESCWithCreateToken:(BOOL)_createToken ;
|
/*protected: */-(void) mESCWithCreateToken:(BOOL)_createToken ;
|
||||||
/*public: */-(void) mHEXNUMWithCreateToken:(BOOL)_createToken ;
|
/*public: */-(void) mHEXNUMWithCreateToken:(BOOL)_createToken ;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "GSWeb.h"
|
#include <GSWeb/GSWeb.h>
|
||||||
|
|
||||||
#include "gsantlr/ANTLRCommon.h"
|
#include "gsantlr/ANTLRCommon.h"
|
||||||
#include "gsantlr/ANTLRException.h"
|
#include "gsantlr/ANTLRException.h"
|
||||||
|
@ -123,6 +123,12 @@
|
||||||
_rettoken=_returnToken;
|
_rettoken=_returnToken;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case ((unichar)('!')):
|
||||||
|
{
|
||||||
|
[self mEXCLAMATIONMARKWithCreateToken:YES];
|
||||||
|
_rettoken=_returnToken;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case ((unichar)('\t')): case ((unichar)('\n')): case ((unichar)('\r')): case ((unichar)(' ')):
|
case ((unichar)('\t')): case ((unichar)('\n')): case ((unichar)('\r')): case ((unichar)(' ')):
|
||||||
{
|
{
|
||||||
[self mWSWithCreateToken:YES];
|
[self mWSWithCreateToken:YES];
|
||||||
|
@ -735,11 +741,11 @@ int _begin=[text length];
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
goto _loop70;
|
goto _loop71;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (YES);
|
} while (YES);
|
||||||
_loop70:;
|
_loop71:;
|
||||||
}
|
}
|
||||||
[self matchCharacter:'\''];
|
[self matchCharacter:'\''];
|
||||||
break;
|
break;
|
||||||
|
@ -828,11 +834,11 @@ int _begin=[text length];
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
goto _loop73;
|
goto _loop74;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (YES);
|
} while (YES);
|
||||||
_loop73:;
|
_loop74:;
|
||||||
}
|
}
|
||||||
[self matchCharacter:'"'];
|
[self matchCharacter:'"'];
|
||||||
break;
|
break;
|
||||||
|
@ -1014,7 +1020,7 @@ int _begin=[text length];
|
||||||
|
|
||||||
//LOGObjectFnStart();
|
//LOGObjectFnStart();
|
||||||
{
|
{
|
||||||
int _cnt77=0;
|
int _cnt78=0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if ((([self LA:1] >= ((unichar)('0')) && [self LA:1] <= ((unichar)('9')))))
|
if ((([self LA:1] >= ((unichar)('0')) && [self LA:1] <= ((unichar)('9')))))
|
||||||
|
@ -1023,12 +1029,12 @@ int _begin=[text length];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( _cnt77>=1 ) { goto _loop77; } else {[ANTLRScannerException raiseWithReason:[NSString stringWithFormat:@"no viable alt for char: %@",[ANTLRCharScanner charName:[self LA:1]]] line:[self line]];}
|
if ( _cnt78>=1 ) { goto _loop78; } else {[ANTLRScannerException raiseWithReason:[NSString stringWithFormat:@"no viable alt for char: %@",[ANTLRCharScanner charName:[self LA:1]]] line:[self line]];}
|
||||||
}
|
}
|
||||||
|
|
||||||
_cnt77++;
|
_cnt78++;
|
||||||
} while (YES);
|
} while (YES);
|
||||||
_loop77:;
|
_loop78:;
|
||||||
}
|
}
|
||||||
if ( _createToken && _token==0 )
|
if ( _createToken && _token==0 )
|
||||||
{
|
{
|
||||||
|
@ -1221,6 +1227,24 @@ int _begin=[text length];
|
||||||
//LOGObjectFnStop();
|
//LOGObjectFnStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-(void) mEXCLAMATIONMARKWithCreateToken:(BOOL)_createToken
|
||||||
|
{
|
||||||
|
ANTLRDefToken _token=nil;
|
||||||
|
int _begin=[text length];
|
||||||
|
ANTLRTokenType _ttype = GSWPageDefParserTokenType_EXCLAMATIONMARK;
|
||||||
|
int _saveIndex;
|
||||||
|
|
||||||
|
//LOGObjectFnStart();
|
||||||
|
[self matchCharacter:'!'];
|
||||||
|
if ( _createToken && _token==0 )
|
||||||
|
{
|
||||||
|
_token = [self makeToken:_ttype];
|
||||||
|
[_token setText:[text substringFromIndex:_begin]];
|
||||||
|
}
|
||||||
|
ASSIGN(_returnToken,_token);
|
||||||
|
//LOGObjectFnStop();
|
||||||
|
}
|
||||||
|
|
||||||
-(void) mWSWithCreateToken:(BOOL)_createToken
|
-(void) mWSWithCreateToken:(BOOL)_createToken
|
||||||
{
|
{
|
||||||
ANTLRDefToken _token=nil;
|
ANTLRDefToken _token=nil;
|
||||||
|
@ -1330,7 +1354,7 @@ int _begin=[text length];
|
||||||
case ((unichar)('u')):
|
case ((unichar)('u')):
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
int _cnt82=0;
|
int _cnt83=0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (([self LA:1]==((unichar)('u'))))
|
if (([self LA:1]==((unichar)('u'))))
|
||||||
|
@ -1339,12 +1363,12 @@ int _begin=[text length];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( _cnt82>=1 ) { goto _loop82; } else {[ANTLRScannerException raiseWithReason:[NSString stringWithFormat:@"no viable alt for char: %@",[ANTLRCharScanner charName:[self LA:1]]] line:[self line]];}
|
if ( _cnt83>=1 ) { goto _loop83; } else {[ANTLRScannerException raiseWithReason:[NSString stringWithFormat:@"no viable alt for char: %@",[ANTLRCharScanner charName:[self LA:1]]] line:[self line]];}
|
||||||
}
|
}
|
||||||
|
|
||||||
_cnt82++;
|
_cnt83++;
|
||||||
} while (YES);
|
} while (YES);
|
||||||
_loop82:;
|
_loop83:;
|
||||||
}
|
}
|
||||||
[self mHEXDIGITWithCreateToken:NO];
|
[self mHEXDIGITWithCreateToken:NO];
|
||||||
[self mHEXDIGITWithCreateToken:NO];
|
[self mHEXDIGITWithCreateToken:NO];
|
||||||
|
@ -1455,7 +1479,7 @@ int _begin=[text length];
|
||||||
|
|
||||||
//LOGObjectFnStart();
|
//LOGObjectFnStart();
|
||||||
{
|
{
|
||||||
int _cnt92=0;
|
int _cnt93=0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (([GSWPageDefLexer___tokenSet_2 isMember:[self LA:1]]))
|
if (([GSWPageDefLexer___tokenSet_2 isMember:[self LA:1]]))
|
||||||
|
@ -1464,12 +1488,12 @@ int _begin=[text length];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( _cnt92>=1 ) { goto _loop92; } else {[ANTLRScannerException raiseWithReason:[NSString stringWithFormat:@"no viable alt for char: %@",[ANTLRCharScanner charName:[self LA:1]]] line:[self line]];}
|
if ( _cnt93>=1 ) { goto _loop93; } else {[ANTLRScannerException raiseWithReason:[NSString stringWithFormat:@"no viable alt for char: %@",[ANTLRCharScanner charName:[self LA:1]]] line:[self line]];}
|
||||||
}
|
}
|
||||||
|
|
||||||
_cnt92++;
|
_cnt93++;
|
||||||
} while (YES);
|
} while (YES);
|
||||||
_loop92:;
|
_loop93:;
|
||||||
}
|
}
|
||||||
if ( _createToken && _token==0 )
|
if ( _createToken && _token==0 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "GSWeb.h"
|
#include <GSWeb/GSWeb.h>
|
||||||
|
|
||||||
#include "gsantlr/ANTLRCommon.h"
|
#include "gsantlr/ANTLRCommon.h"
|
||||||
#include "gsantlr/ANTLRTokenizer.h"
|
#include "gsantlr/ANTLRTokenizer.h"
|
||||||
|
@ -61,5 +61,7 @@ extern CONST unsigned long GSWPageDefParser___tokenSet_4_data_[];
|
||||||
extern ANTLRBitSet* GSWPageDefParser___tokenSet_4;
|
extern ANTLRBitSet* GSWPageDefParser___tokenSet_4;
|
||||||
extern CONST unsigned long GSWPageDefParser___tokenSet_5_data_[];
|
extern CONST unsigned long GSWPageDefParser___tokenSet_5_data_[];
|
||||||
extern ANTLRBitSet* GSWPageDefParser___tokenSet_5;
|
extern ANTLRBitSet* GSWPageDefParser___tokenSet_5;
|
||||||
|
extern CONST unsigned long GSWPageDefParser___tokenSet_6_data_[];
|
||||||
|
extern ANTLRBitSet* GSWPageDefParser___tokenSet_6;
|
||||||
|
|
||||||
#endif /*INC_GSWPageDefParser_h_*/
|
#endif /*INC_GSWPageDefParser_h_*/
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "GSWeb.h"
|
#include <GSWeb/GSWeb.h>
|
||||||
|
|
||||||
#include "gsantlr/ANTLRCommon.h"
|
#include "gsantlr/ANTLRCommon.h"
|
||||||
#include "GSWPageDefParser.h"
|
#include "GSWPageDefParser.h"
|
||||||
|
@ -242,7 +242,7 @@
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (([self LA:1]==GSWPageDefParserTokenType_IDENT||[self LA:1]==GSWPageDefParserTokenType_QUESTIONMARK))
|
if (([GSWPageDefParser___tokenSet_2 isMember:[self LA:1]]))
|
||||||
{
|
{
|
||||||
[self member];
|
[self member];
|
||||||
[astFactory addASTChild:returnAST in:currentAST];
|
[astFactory addASTChild:returnAST in:currentAST];
|
||||||
|
@ -324,7 +324,7 @@
|
||||||
{
|
{
|
||||||
[self reportErrorWithException:localException];
|
[self reportErrorWithException:localException];
|
||||||
[self consume];
|
[self consume];
|
||||||
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_2];
|
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_3];
|
||||||
}
|
}
|
||||||
NS_ENDHANDLER;
|
NS_ENDHANDLER;
|
||||||
ASSIGN(returnAST,classname_AST);
|
ASSIGN(returnAST,classname_AST);
|
||||||
|
@ -382,7 +382,7 @@
|
||||||
{
|
{
|
||||||
[self reportErrorWithException:localException];
|
[self reportErrorWithException:localException];
|
||||||
[self consume];
|
[self consume];
|
||||||
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_3];
|
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_4];
|
||||||
}
|
}
|
||||||
NS_ENDHANDLER;
|
NS_ENDHANDLER;
|
||||||
ASSIGN(returnAST,member_AST);
|
ASSIGN(returnAST,member_AST);
|
||||||
|
@ -412,6 +412,17 @@
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_QUESTIONMARK];
|
[self matchTokenType:GSWPageDefParserTokenType_QUESTIONMARK];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GSWPageDefParserTokenType_EXCLAMATIONMARK:
|
||||||
|
{
|
||||||
|
{
|
||||||
|
ANTLRDefAST tmp10_AST = ANTLRnullAST;
|
||||||
|
tmp10_AST = [astFactory create:[self LT:1]];
|
||||||
|
[astFactory addASTChild:tmp10_AST in:currentAST];
|
||||||
|
}
|
||||||
|
[self matchTokenType:GSWPageDefParserTokenType_EXCLAMATIONMARK];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case GSWPageDefParserTokenType_STRING:
|
||||||
case GSWPageDefParserTokenType_IDENT:
|
case GSWPageDefParserTokenType_IDENT:
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
@ -423,12 +434,33 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
switch ( [self LA:1])
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp10_AST = ANTLRnullAST;
|
case GSWPageDefParserTokenType_IDENT:
|
||||||
tmp10_AST = [astFactory create:[self LT:1]];
|
{
|
||||||
[astFactory addASTChild:tmp10_AST in:currentAST];
|
{
|
||||||
|
ANTLRDefAST tmp11_AST = ANTLRnullAST;
|
||||||
|
tmp11_AST = [astFactory create:[self LT:1]];
|
||||||
|
[astFactory addASTChild:tmp11_AST in:currentAST];
|
||||||
|
}
|
||||||
|
[self matchTokenType:GSWPageDefParserTokenType_IDENT];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case GSWPageDefParserTokenType_STRING:
|
||||||
|
{
|
||||||
|
{
|
||||||
|
ANTLRDefAST tmp12_AST = ANTLRnullAST;
|
||||||
|
tmp12_AST = [astFactory create:[self LT:1]];
|
||||||
|
[astFactory addASTChild:tmp12_AST in:currentAST];
|
||||||
|
}
|
||||||
|
[self matchTokenType:GSWPageDefParserTokenType_STRING];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
[ANTLRNoViableAltException raiseWithToken:[self LT:1]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_IDENT];
|
|
||||||
}
|
}
|
||||||
mname_AST = [currentAST root];
|
mname_AST = [currentAST root];
|
||||||
}
|
}
|
||||||
|
@ -436,7 +468,7 @@
|
||||||
{
|
{
|
||||||
[self reportErrorWithException:localException];
|
[self reportErrorWithException:localException];
|
||||||
[self consume];
|
[self consume];
|
||||||
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_4];
|
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_5];
|
||||||
}
|
}
|
||||||
NS_ENDHANDLER;
|
NS_ENDHANDLER;
|
||||||
ASSIGN(returnAST,mname_AST);
|
ASSIGN(returnAST,mname_AST);
|
||||||
|
@ -490,9 +522,9 @@
|
||||||
case GSWPageDefParserTokenType_YES:
|
case GSWPageDefParserTokenType_YES:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp11_AST = ANTLRnullAST;
|
ANTLRDefAST tmp13_AST = ANTLRnullAST;
|
||||||
tmp11_AST = [astFactory create:[self LT:1]];
|
tmp13_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp11_AST in:currentAST];
|
[astFactory addASTChild:tmp13_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_YES];
|
[self matchTokenType:GSWPageDefParserTokenType_YES];
|
||||||
{ GSWAssociation* assoc=[GSWAssociation associationWithValue:[NSNumber numberWithBool:YES]];
|
{ GSWAssociation* assoc=[GSWAssociation associationWithValue:[NSNumber numberWithBool:YES]];
|
||||||
|
@ -502,9 +534,9 @@
|
||||||
case GSWPageDefParserTokenType_NO:
|
case GSWPageDefParserTokenType_NO:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp12_AST = ANTLRnullAST;
|
ANTLRDefAST tmp14_AST = ANTLRnullAST;
|
||||||
tmp12_AST = [astFactory create:[self LT:1]];
|
tmp14_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp12_AST in:currentAST];
|
[astFactory addASTChild:tmp14_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_NO];
|
[self matchTokenType:GSWPageDefParserTokenType_NO];
|
||||||
{ GSWAssociation* assoc=[GSWAssociation associationWithValue:[NSNumber numberWithBool:NO]];
|
{ GSWAssociation* assoc=[GSWAssociation associationWithValue:[NSNumber numberWithBool:NO]];
|
||||||
|
@ -547,7 +579,7 @@
|
||||||
{
|
{
|
||||||
[self reportErrorWithException:localException];
|
[self reportErrorWithException:localException];
|
||||||
[self consume];
|
[self consume];
|
||||||
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_5];
|
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_6];
|
||||||
}
|
}
|
||||||
NS_ENDHANDLER;
|
NS_ENDHANDLER;
|
||||||
ASSIGN(returnAST,mvalue_AST);
|
ASSIGN(returnAST,mvalue_AST);
|
||||||
|
@ -570,9 +602,9 @@
|
||||||
case GSWPageDefParserTokenType_CIRC:
|
case GSWPageDefParserTokenType_CIRC:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp13_AST = ANTLRnullAST;
|
ANTLRDefAST tmp15_AST = ANTLRnullAST;
|
||||||
tmp13_AST = [astFactory create:[self LT:1]];
|
tmp15_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp13_AST in:currentAST];
|
[astFactory addASTChild:tmp15_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_CIRC];
|
[self matchTokenType:GSWPageDefParserTokenType_CIRC];
|
||||||
break;
|
break;
|
||||||
|
@ -580,9 +612,9 @@
|
||||||
case GSWPageDefParserTokenType_TILDE:
|
case GSWPageDefParserTokenType_TILDE:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp14_AST = ANTLRnullAST;
|
ANTLRDefAST tmp16_AST = ANTLRnullAST;
|
||||||
tmp14_AST = [astFactory create:[self LT:1]];
|
tmp16_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp14_AST in:currentAST];
|
[astFactory addASTChild:tmp16_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_TILDE];
|
[self matchTokenType:GSWPageDefParserTokenType_TILDE];
|
||||||
break;
|
break;
|
||||||
|
@ -604,9 +636,9 @@
|
||||||
case GSWPageDefParserTokenType_IDENT:
|
case GSWPageDefParserTokenType_IDENT:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp15_AST = ANTLRnullAST;
|
ANTLRDefAST tmp17_AST = ANTLRnullAST;
|
||||||
tmp15_AST = [astFactory create:[self LT:1]];
|
tmp17_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp15_AST in:currentAST];
|
[astFactory addASTChild:tmp17_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_IDENT];
|
[self matchTokenType:GSWPageDefParserTokenType_IDENT];
|
||||||
break;
|
break;
|
||||||
|
@ -614,9 +646,9 @@
|
||||||
case GSWPageDefParserTokenType_IDENTREF:
|
case GSWPageDefParserTokenType_IDENTREF:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp16_AST = ANTLRnullAST;
|
ANTLRDefAST tmp18_AST = ANTLRnullAST;
|
||||||
tmp16_AST = [astFactory create:[self LT:1]];
|
tmp18_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp16_AST in:currentAST];
|
[astFactory addASTChild:tmp18_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_IDENTREF];
|
[self matchTokenType:GSWPageDefParserTokenType_IDENTREF];
|
||||||
break;
|
break;
|
||||||
|
@ -635,9 +667,9 @@
|
||||||
case GSWPageDefParserTokenType_PIDENT:
|
case GSWPageDefParserTokenType_PIDENT:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp17_AST = ANTLRnullAST;
|
ANTLRDefAST tmp19_AST = ANTLRnullAST;
|
||||||
tmp17_AST = [astFactory create:[self LT:1]];
|
tmp19_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp17_AST in:currentAST];
|
[astFactory addASTChild:tmp19_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_PIDENT];
|
[self matchTokenType:GSWPageDefParserTokenType_PIDENT];
|
||||||
break;
|
break;
|
||||||
|
@ -645,9 +677,9 @@
|
||||||
case GSWPageDefParserTokenType_PIDENTREF:
|
case GSWPageDefParserTokenType_PIDENTREF:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
ANTLRDefAST tmp18_AST = ANTLRnullAST;
|
ANTLRDefAST tmp20_AST = ANTLRnullAST;
|
||||||
tmp18_AST = [astFactory create:[self LT:1]];
|
tmp20_AST = [astFactory create:[self LT:1]];
|
||||||
[astFactory addASTChild:tmp18_AST in:currentAST];
|
[astFactory addASTChild:tmp20_AST in:currentAST];
|
||||||
}
|
}
|
||||||
[self matchTokenType:GSWPageDefParserTokenType_PIDENTREF];
|
[self matchTokenType:GSWPageDefParserTokenType_PIDENTREF];
|
||||||
break;
|
break;
|
||||||
|
@ -666,7 +698,7 @@
|
||||||
{
|
{
|
||||||
[self reportErrorWithException:localException];
|
[self reportErrorWithException:localException];
|
||||||
[self consume];
|
[self consume];
|
||||||
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_5];
|
[self consumeUntilTokenBitSet:GSWPageDefParser___tokenSet_6];
|
||||||
}
|
}
|
||||||
NS_ENDHANDLER;
|
NS_ENDHANDLER;
|
||||||
ASSIGN(returnAST,idref_AST);
|
ASSIGN(returnAST,idref_AST);
|
||||||
|
@ -688,6 +720,7 @@ static CONST NSString* GSWPageDefParser___tokenNames[] = {
|
||||||
@"SEMI",
|
@"SEMI",
|
||||||
@"ASSIGN",
|
@"ASSIGN",
|
||||||
@"QUESTIONMARK",
|
@"QUESTIONMARK",
|
||||||
|
@"EXCLAMATIONMARK",
|
||||||
@"INT",
|
@"INT",
|
||||||
@"YES",
|
@"YES",
|
||||||
@"NO",
|
@"NO",
|
||||||
|
@ -713,14 +746,16 @@ CONST unsigned long GSWPageDefParser___tokenSet_0_data_[] = { 2UL, 0UL, 0UL, 0UL
|
||||||
static ANTLRBitSet* GSWPageDefParser___tokenSet_0=nil;
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_0=nil;
|
||||||
CONST unsigned long GSWPageDefParser___tokenSet_1_data_[] = { 146UL, 0UL, 0UL, 0UL };
|
CONST unsigned long GSWPageDefParser___tokenSet_1_data_[] = { 146UL, 0UL, 0UL, 0UL };
|
||||||
static ANTLRBitSet* GSWPageDefParser___tokenSet_1=nil;
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_1=nil;
|
||||||
CONST unsigned long GSWPageDefParser___tokenSet_2_data_[] = { 512UL, 0UL, 0UL, 0UL };
|
CONST unsigned long GSWPageDefParser___tokenSet_2_data_[] = { 24768UL, 0UL, 0UL, 0UL };
|
||||||
static ANTLRBitSet* GSWPageDefParser___tokenSet_2=nil;
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_2=nil;
|
||||||
CONST unsigned long GSWPageDefParser___tokenSet_3_data_[] = { 9344UL, 0UL, 0UL, 0UL };
|
CONST unsigned long GSWPageDefParser___tokenSet_3_data_[] = { 512UL, 0UL, 0UL, 0UL };
|
||||||
static ANTLRBitSet* GSWPageDefParser___tokenSet_3=nil;
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_3=nil;
|
||||||
CONST unsigned long GSWPageDefParser___tokenSet_4_data_[] = { 4096UL, 0UL, 0UL, 0UL };
|
CONST unsigned long GSWPageDefParser___tokenSet_4_data_[] = { 25792UL, 0UL, 0UL, 0UL };
|
||||||
static ANTLRBitSet* GSWPageDefParser___tokenSet_4=nil;
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_4=nil;
|
||||||
CONST unsigned long GSWPageDefParser___tokenSet_5_data_[] = { 11392UL, 0UL, 0UL, 0UL };
|
CONST unsigned long GSWPageDefParser___tokenSet_5_data_[] = { 4096UL, 0UL, 0UL, 0UL };
|
||||||
static ANTLRBitSet* GSWPageDefParser___tokenSet_5=nil;
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_5=nil;
|
||||||
|
CONST unsigned long GSWPageDefParser___tokenSet_6_data_[] = { 27840UL, 0UL, 0UL, 0UL };
|
||||||
|
static ANTLRBitSet* GSWPageDefParser___tokenSet_6=nil;
|
||||||
+(void)initialize
|
+(void)initialize
|
||||||
{
|
{
|
||||||
if (!GSWPageDefParser___tokenSet_0)
|
if (!GSWPageDefParser___tokenSet_0)
|
||||||
|
@ -735,6 +770,8 @@ static ANTLRBitSet* GSWPageDefParser___tokenSet_5=nil;
|
||||||
GSWPageDefParser___tokenSet_4=[[ANTLRBitSet bitSetWithULongBits:GSWPageDefParser___tokenSet_4_data_ length:8] retain];
|
GSWPageDefParser___tokenSet_4=[[ANTLRBitSet bitSetWithULongBits:GSWPageDefParser___tokenSet_4_data_ length:8] retain];
|
||||||
if (!GSWPageDefParser___tokenSet_5)
|
if (!GSWPageDefParser___tokenSet_5)
|
||||||
GSWPageDefParser___tokenSet_5=[[ANTLRBitSet bitSetWithULongBits:GSWPageDefParser___tokenSet_5_data_ length:8] retain];
|
GSWPageDefParser___tokenSet_5=[[ANTLRBitSet bitSetWithULongBits:GSWPageDefParser___tokenSet_5_data_ length:8] retain];
|
||||||
|
if (!GSWPageDefParser___tokenSet_6)
|
||||||
|
GSWPageDefParser___tokenSet_6=[[ANTLRBitSet bitSetWithULongBits:GSWPageDefParser___tokenSet_6_data_ length:8] retain];
|
||||||
}
|
}
|
||||||
+(void)dealloc
|
+(void)dealloc
|
||||||
{
|
{
|
||||||
|
@ -744,6 +781,7 @@ static ANTLRBitSet* GSWPageDefParser___tokenSet_5=nil;
|
||||||
DESTROY(GSWPageDefParser___tokenSet_3);
|
DESTROY(GSWPageDefParser___tokenSet_3);
|
||||||
DESTROY(GSWPageDefParser___tokenSet_4);
|
DESTROY(GSWPageDefParser___tokenSet_4);
|
||||||
DESTROY(GSWPageDefParser___tokenSet_5);
|
DESTROY(GSWPageDefParser___tokenSet_5);
|
||||||
|
DESTROY(GSWPageDefParser___tokenSet_6);
|
||||||
[[self superclass] dealloc];
|
[[self superclass] dealloc];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "GSWeb.h"
|
#include <GSWeb/GSWeb.h>
|
||||||
|
|
||||||
enum GSWPageDefParserTokenTypes {
|
enum GSWPageDefParserTokenTypes {
|
||||||
GSWPageDefParserTokenType_EOF_ = 1,
|
GSWPageDefParserTokenType_EOF_ = 1,
|
||||||
|
@ -26,23 +26,24 @@ enum GSWPageDefParserTokenTypes {
|
||||||
GSWPageDefParserTokenType_SEMI = 11,
|
GSWPageDefParserTokenType_SEMI = 11,
|
||||||
GSWPageDefParserTokenType_ASSIGN = 12,
|
GSWPageDefParserTokenType_ASSIGN = 12,
|
||||||
GSWPageDefParserTokenType_QUESTIONMARK = 13,
|
GSWPageDefParserTokenType_QUESTIONMARK = 13,
|
||||||
GSWPageDefParserTokenType_INT = 14,
|
GSWPageDefParserTokenType_EXCLAMATIONMARK = 14,
|
||||||
GSWPageDefParserTokenType_YES = 15,
|
GSWPageDefParserTokenType_INT = 15,
|
||||||
GSWPageDefParserTokenType_NO = 16,
|
GSWPageDefParserTokenType_YES = 16,
|
||||||
GSWPageDefParserTokenType_HEXNUM = 17,
|
GSWPageDefParserTokenType_NO = 17,
|
||||||
GSWPageDefParserTokenType_CIRC = 18,
|
GSWPageDefParserTokenType_HEXNUM = 18,
|
||||||
GSWPageDefParserTokenType_TILDE = 19,
|
GSWPageDefParserTokenType_CIRC = 19,
|
||||||
GSWPageDefParserTokenType_IDENTREF = 20,
|
GSWPageDefParserTokenType_TILDE = 20,
|
||||||
GSWPageDefParserTokenType_PIDENT = 21,
|
GSWPageDefParserTokenType_IDENTREF = 21,
|
||||||
GSWPageDefParserTokenType_PIDENTREF = 22,
|
GSWPageDefParserTokenType_PIDENT = 22,
|
||||||
GSWPageDefParserTokenType_SL_COMMENT = 23,
|
GSWPageDefParserTokenType_PIDENTREF = 23,
|
||||||
GSWPageDefParserTokenType_ML_COMMENT = 24,
|
GSWPageDefParserTokenType_SL_COMMENT = 24,
|
||||||
GSWPageDefParserTokenType_POINT = 25,
|
GSWPageDefParserTokenType_ML_COMMENT = 25,
|
||||||
GSWPageDefParserTokenType_ESC = 26,
|
GSWPageDefParserTokenType_POINT = 26,
|
||||||
GSWPageDefParserTokenType_HEXINT = 27,
|
GSWPageDefParserTokenType_ESC = 27,
|
||||||
GSWPageDefParserTokenType_DIGIT = 28,
|
GSWPageDefParserTokenType_HEXINT = 28,
|
||||||
GSWPageDefParserTokenType_HEXDIGIT = 29,
|
GSWPageDefParserTokenType_DIGIT = 29,
|
||||||
GSWPageDefParserTokenType_LCLETTER = 30,
|
GSWPageDefParserTokenType_HEXDIGIT = 30,
|
||||||
GSWPageDefParserTokenType_LETTER = 31,
|
GSWPageDefParserTokenType_LCLETTER = 31,
|
||||||
|
GSWPageDefParserTokenType_LETTER = 32,
|
||||||
};
|
};
|
||||||
#endif /*INC_GSWPageDefParserTokenTypes_h_*/
|
#endif /*INC_GSWPageDefParserTokenTypes_h_*/
|
||||||
|
|
|
@ -9,21 +9,22 @@ RCURLY=10
|
||||||
SEMI=11
|
SEMI=11
|
||||||
ASSIGN=12
|
ASSIGN=12
|
||||||
QUESTIONMARK=13
|
QUESTIONMARK=13
|
||||||
INT=14
|
EXCLAMATIONMARK=14
|
||||||
YES=15
|
INT=15
|
||||||
NO=16
|
YES=16
|
||||||
HEXNUM=17
|
NO=17
|
||||||
CIRC=18
|
HEXNUM=18
|
||||||
TILDE=19
|
CIRC=19
|
||||||
IDENTREF=20
|
TILDE=20
|
||||||
PIDENT=21
|
IDENTREF=21
|
||||||
PIDENTREF=22
|
PIDENT=22
|
||||||
SL_COMMENT=23
|
PIDENTREF=23
|
||||||
ML_COMMENT=24
|
SL_COMMENT=24
|
||||||
POINT=25
|
ML_COMMENT=25
|
||||||
ESC=26
|
POINT=26
|
||||||
HEXINT=27
|
ESC=27
|
||||||
DIGIT=28
|
HEXINT=28
|
||||||
HEXDIGIT=29
|
DIGIT=29
|
||||||
LCLETTER=30
|
HEXDIGIT=30
|
||||||
LETTER=31
|
LCLETTER=31
|
||||||
|
LETTER=32
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue