diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/ragel6/cdcodegen.h | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/ragel6/cdcodegen.h')
-rw-r--r-- | contrib/tools/ragel6/cdcodegen.h | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/contrib/tools/ragel6/cdcodegen.h b/contrib/tools/ragel6/cdcodegen.h index b9a84906d5..567ee85887 100644 --- a/contrib/tools/ragel6/cdcodegen.h +++ b/contrib/tools/ragel6/cdcodegen.h @@ -73,18 +73,18 @@ protected: string GET_WIDE_KEY( RedStateAp *state ); string TABS( int level ); string KEY( Key key ); - string WIDE_KEY( RedStateAp *state, Key key ); + string WIDE_KEY( RedStateAp *state, Key key ); string LDIR_PATH( char *path ); - virtual void ACTION( ostream &ret, GenAction *action, int targState, + virtual void ACTION( ostream &ret, GenAction *action, int targState, bool inFinish, bool csForced ); void CONDITION( ostream &ret, GenAction *condition ); string ALPH_TYPE(); string WIDE_ALPH_TYPE(); string ARRAY_TYPE( unsigned long maxVal ); - bool isAlphTypeSigned(); - bool isWideAlphTypeSigned(); - + bool isAlphTypeSigned(); + bool isWideAlphTypeSigned(); + virtual string ARR_OFF( string ptr, string offset ) = 0; virtual string CAST( string type ) = 0; virtual string UINT() = 0; @@ -131,8 +131,8 @@ protected: string FIRST_FINAL() { return DATA_PREFIX() + "first_final"; } string CTXDATA() { return DATA_PREFIX() + "ctxdata"; } - void EOF_CHECK( ostream &ret ); - + void EOF_CHECK( ostream &ret ); + void INLINE_LIST( ostream &ret, GenInlineList *inlineList, int targState, bool inFinish, bool csForced ); virtual void GOTO( ostream &ret, int gotoDest, bool inFinish ) = 0; @@ -155,7 +155,7 @@ protected: void SET_TOKSTART( ostream &ret, GenInlineItem *item ); void SET_TOKEND( ostream &ret, GenInlineItem *item ); void GET_TOKEND( ostream &ret, GenInlineItem *item ); - virtual void SUB_ACTION( ostream &ret, GenInlineItem *item, + virtual void SUB_ACTION( ostream &ret, GenInlineItem *item, int targState, bool inFinish, bool csForced ); void STATE_IDS(); @@ -163,7 +163,7 @@ protected: string FIRST_FINAL_STATE(); virtual string PTR_CONST() = 0; - virtual string PTR_CONST_END() = 0; + virtual string PTR_CONST_END() = 0; virtual ostream &OPEN_ARRAY( string type, string name ) = 0; virtual ostream &CLOSE_ARRAY() = 0; virtual ostream &STATIC_VAR( string type, string name ) = 0; @@ -202,7 +202,7 @@ public: virtual string CAST( string type ); virtual string UINT(); virtual string PTR_CONST(); - virtual string PTR_CONST_END(); + virtual string PTR_CONST_END(); virtual string CTRL_FLOW(); virtual void writeExports(); @@ -223,36 +223,36 @@ public: virtual string CAST( string type ); virtual string UINT(); virtual string PTR_CONST(); - virtual string PTR_CONST_END(); + virtual string PTR_CONST_END(); virtual string CTRL_FLOW(); virtual void writeExports(); }; -class D2CodeGen : virtual public FsmCodeGen -{ -public: - D2CodeGen( ostream &out ) : FsmCodeGen(out) {} - - virtual string NULL_ITEM(); - virtual string POINTER(); - virtual ostream &SWITCH_DEFAULT(); - virtual ostream &OPEN_ARRAY( string type, string name ); - virtual ostream &CLOSE_ARRAY(); - virtual ostream &STATIC_VAR( string type, string name ); - virtual string ARR_OFF( string ptr, string offset ); - virtual string CAST( string type ); - virtual string UINT(); - virtual string PTR_CONST(); - virtual string PTR_CONST_END(); - virtual string CTRL_FLOW(); - - virtual void writeExports(); - virtual void SUB_ACTION( ostream &ret, GenInlineItem *item, - int targState, bool inFinish, bool csForced ); - virtual void ACTION( ostream &ret, GenAction *action, int targState, - bool inFinish, bool csForced ); - -}; - +class D2CodeGen : virtual public FsmCodeGen +{ +public: + D2CodeGen( ostream &out ) : FsmCodeGen(out) {} + + virtual string NULL_ITEM(); + virtual string POINTER(); + virtual ostream &SWITCH_DEFAULT(); + virtual ostream &OPEN_ARRAY( string type, string name ); + virtual ostream &CLOSE_ARRAY(); + virtual ostream &STATIC_VAR( string type, string name ); + virtual string ARR_OFF( string ptr, string offset ); + virtual string CAST( string type ); + virtual string UINT(); + virtual string PTR_CONST(); + virtual string PTR_CONST_END(); + virtual string CTRL_FLOW(); + + virtual void writeExports(); + virtual void SUB_ACTION( ostream &ret, GenInlineItem *item, + int targState, bool inFinish, bool csForced ); + virtual void ACTION( ostream &ret, GenAction *action, int targState, + bool inFinish, bool csForced ); + +}; + #endif |