1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248 |
- #include "cmStandardLexer.h"
- #define FLEXINT_H 1
- #define YY_INT_ALIGNED short int
- #define FLEX_SCANNER
- #define YY_FLEX_MAJOR_VERSION 2
- #define YY_FLEX_MINOR_VERSION 6
- #define YY_FLEX_SUBMINOR_VERSION 4
- #if YY_FLEX_SUBMINOR_VERSION > 0
- #define FLEX_BETA
- #endif
- #ifdef yy_create_buffer
- #define cmCommandArgument_yy_create_buffer_ALREADY_DEFINED
- #else
- #define yy_create_buffer cmCommandArgument_yy_create_buffer
- #endif
- #ifdef yy_delete_buffer
- #define cmCommandArgument_yy_delete_buffer_ALREADY_DEFINED
- #else
- #define yy_delete_buffer cmCommandArgument_yy_delete_buffer
- #endif
- #ifdef yy_scan_buffer
- #define cmCommandArgument_yy_scan_buffer_ALREADY_DEFINED
- #else
- #define yy_scan_buffer cmCommandArgument_yy_scan_buffer
- #endif
- #ifdef yy_scan_string
- #define cmCommandArgument_yy_scan_string_ALREADY_DEFINED
- #else
- #define yy_scan_string cmCommandArgument_yy_scan_string
- #endif
- #ifdef yy_scan_bytes
- #define cmCommandArgument_yy_scan_bytes_ALREADY_DEFINED
- #else
- #define yy_scan_bytes cmCommandArgument_yy_scan_bytes
- #endif
- #ifdef yy_init_buffer
- #define cmCommandArgument_yy_init_buffer_ALREADY_DEFINED
- #else
- #define yy_init_buffer cmCommandArgument_yy_init_buffer
- #endif
- #ifdef yy_flush_buffer
- #define cmCommandArgument_yy_flush_buffer_ALREADY_DEFINED
- #else
- #define yy_flush_buffer cmCommandArgument_yy_flush_buffer
- #endif
- #ifdef yy_load_buffer_state
- #define cmCommandArgument_yy_load_buffer_state_ALREADY_DEFINED
- #else
- #define yy_load_buffer_state cmCommandArgument_yy_load_buffer_state
- #endif
- #ifdef yy_switch_to_buffer
- #define cmCommandArgument_yy_switch_to_buffer_ALREADY_DEFINED
- #else
- #define yy_switch_to_buffer cmCommandArgument_yy_switch_to_buffer
- #endif
- #ifdef yypush_buffer_state
- #define cmCommandArgument_yypush_buffer_state_ALREADY_DEFINED
- #else
- #define yypush_buffer_state cmCommandArgument_yypush_buffer_state
- #endif
- #ifdef yypop_buffer_state
- #define cmCommandArgument_yypop_buffer_state_ALREADY_DEFINED
- #else
- #define yypop_buffer_state cmCommandArgument_yypop_buffer_state
- #endif
- #ifdef yyensure_buffer_stack
- #define cmCommandArgument_yyensure_buffer_stack_ALREADY_DEFINED
- #else
- #define yyensure_buffer_stack cmCommandArgument_yyensure_buffer_stack
- #endif
- #ifdef yylex
- #define cmCommandArgument_yylex_ALREADY_DEFINED
- #else
- #define yylex cmCommandArgument_yylex
- #endif
- #ifdef yyrestart
- #define cmCommandArgument_yyrestart_ALREADY_DEFINED
- #else
- #define yyrestart cmCommandArgument_yyrestart
- #endif
- #ifdef yylex_init
- #define cmCommandArgument_yylex_init_ALREADY_DEFINED
- #else
- #define yylex_init cmCommandArgument_yylex_init
- #endif
- #ifdef yylex_init_extra
- #define cmCommandArgument_yylex_init_extra_ALREADY_DEFINED
- #else
- #define yylex_init_extra cmCommandArgument_yylex_init_extra
- #endif
- #ifdef yylex_destroy
- #define cmCommandArgument_yylex_destroy_ALREADY_DEFINED
- #else
- #define yylex_destroy cmCommandArgument_yylex_destroy
- #endif
- #ifdef yyget_debug
- #define cmCommandArgument_yyget_debug_ALREADY_DEFINED
- #else
- #define yyget_debug cmCommandArgument_yyget_debug
- #endif
- #ifdef yyset_debug
- #define cmCommandArgument_yyset_debug_ALREADY_DEFINED
- #else
- #define yyset_debug cmCommandArgument_yyset_debug
- #endif
- #ifdef yyget_extra
- #define cmCommandArgument_yyget_extra_ALREADY_DEFINED
- #else
- #define yyget_extra cmCommandArgument_yyget_extra
- #endif
- #ifdef yyset_extra
- #define cmCommandArgument_yyset_extra_ALREADY_DEFINED
- #else
- #define yyset_extra cmCommandArgument_yyset_extra
- #endif
- #ifdef yyget_in
- #define cmCommandArgument_yyget_in_ALREADY_DEFINED
- #else
- #define yyget_in cmCommandArgument_yyget_in
- #endif
- #ifdef yyset_in
- #define cmCommandArgument_yyset_in_ALREADY_DEFINED
- #else
- #define yyset_in cmCommandArgument_yyset_in
- #endif
- #ifdef yyget_out
- #define cmCommandArgument_yyget_out_ALREADY_DEFINED
- #else
- #define yyget_out cmCommandArgument_yyget_out
- #endif
- #ifdef yyset_out
- #define cmCommandArgument_yyset_out_ALREADY_DEFINED
- #else
- #define yyset_out cmCommandArgument_yyset_out
- #endif
- #ifdef yyget_leng
- #define cmCommandArgument_yyget_leng_ALREADY_DEFINED
- #else
- #define yyget_leng cmCommandArgument_yyget_leng
- #endif
- #ifdef yyget_text
- #define cmCommandArgument_yyget_text_ALREADY_DEFINED
- #else
- #define yyget_text cmCommandArgument_yyget_text
- #endif
- #ifdef yyget_lineno
- #define cmCommandArgument_yyget_lineno_ALREADY_DEFINED
- #else
- #define yyget_lineno cmCommandArgument_yyget_lineno
- #endif
- #ifdef yyset_lineno
- #define cmCommandArgument_yyset_lineno_ALREADY_DEFINED
- #else
- #define yyset_lineno cmCommandArgument_yyset_lineno
- #endif
- #ifdef yyget_column
- #define cmCommandArgument_yyget_column_ALREADY_DEFINED
- #else
- #define yyget_column cmCommandArgument_yyget_column
- #endif
- #ifdef yyset_column
- #define cmCommandArgument_yyset_column_ALREADY_DEFINED
- #else
- #define yyset_column cmCommandArgument_yyset_column
- #endif
- #ifdef yywrap
- #define cmCommandArgument_yywrap_ALREADY_DEFINED
- #else
- #define yywrap cmCommandArgument_yywrap
- #endif
- #ifdef yyalloc
- #define cmCommandArgument_yyalloc_ALREADY_DEFINED
- #else
- #define yyalloc cmCommandArgument_yyalloc
- #endif
- #ifdef yyrealloc
- #define cmCommandArgument_yyrealloc_ALREADY_DEFINED
- #else
- #define yyrealloc cmCommandArgument_yyrealloc
- #endif
- #ifdef yyfree
- #define cmCommandArgument_yyfree_ALREADY_DEFINED
- #else
- #define yyfree cmCommandArgument_yyfree
- #endif
- #include <stdio.h>
- #include <string.h>
- #include <errno.h>
- #include <stdlib.h>
- #ifndef FLEXINT_H
- #define FLEXINT_H
- #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
- #ifndef __STDC_LIMIT_MACROS
- #define __STDC_LIMIT_MACROS 1
- #endif
- #include <inttypes.h>
- typedef int8_t flex_int8_t;
- typedef uint8_t flex_uint8_t;
- typedef int16_t flex_int16_t;
- typedef uint16_t flex_uint16_t;
- typedef int32_t flex_int32_t;
- typedef uint32_t flex_uint32_t;
- #else
- typedef signed char flex_int8_t;
- typedef short int flex_int16_t;
- typedef int flex_int32_t;
- typedef unsigned char flex_uint8_t;
- typedef unsigned short int flex_uint16_t;
- typedef unsigned int flex_uint32_t;
- #ifndef INT8_MIN
- #define INT8_MIN (-128)
- #endif
- #ifndef INT16_MIN
- #define INT16_MIN (-32767-1)
- #endif
- #ifndef INT32_MIN
- #define INT32_MIN (-2147483647-1)
- #endif
- #ifndef INT8_MAX
- #define INT8_MAX (127)
- #endif
- #ifndef INT16_MAX
- #define INT16_MAX (32767)
- #endif
- #ifndef INT32_MAX
- #define INT32_MAX (2147483647)
- #endif
- #ifndef UINT8_MAX
- #define UINT8_MAX (255U)
- #endif
- #ifndef UINT16_MAX
- #define UINT16_MAX (65535U)
- #endif
- #ifndef UINT32_MAX
- #define UINT32_MAX (4294967295U)
- #endif
- #ifndef SIZE_MAX
- #define SIZE_MAX (~(size_t)0)
- #endif
- #endif
- #endif
- #define yyconst const
- #if defined(__GNUC__) && __GNUC__ >= 3
- #define yynoreturn __attribute__((__noreturn__))
- #else
- #define yynoreturn
- #endif
- #define YY_NULL 0
- #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
- #ifndef YY_TYPEDEF_YY_SCANNER_T
- #define YY_TYPEDEF_YY_SCANNER_T
- typedef void* yyscan_t;
- #endif
- #define yyin yyg->yyin_r
- #define yyout yyg->yyout_r
- #define yyextra yyg->yyextra_r
- #define yyleng yyg->yyleng_r
- #define yytext yyg->yytext_r
- #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
- #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
- #define yy_flex_debug yyg->yy_flex_debug_r
- #define BEGIN yyg->yy_start = 1 + 2 *
- #define YY_START ((yyg->yy_start - 1) / 2)
- #define YYSTATE YY_START
- #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
- #define YY_NEW_FILE yyrestart( yyin , yyscanner )
- #define YY_END_OF_BUFFER_CHAR 0
- #ifndef YY_BUF_SIZE
- #ifdef __ia64__
- #define YY_BUF_SIZE 32768
- #else
- #define YY_BUF_SIZE 16384
- #endif
- #endif
- #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
- #ifndef YY_TYPEDEF_YY_BUFFER_STATE
- #define YY_TYPEDEF_YY_BUFFER_STATE
- typedef struct yy_buffer_state *YY_BUFFER_STATE;
- #endif
- #ifndef YY_TYPEDEF_YY_SIZE_T
- #define YY_TYPEDEF_YY_SIZE_T
- typedef size_t yy_size_t;
- #endif
- #define EOB_ACT_CONTINUE_SCAN 0
- #define EOB_ACT_END_OF_FILE 1
- #define EOB_ACT_LAST_MATCH 2
- #define YY_LESS_LINENO(n)
- #define YY_LINENO_REWIND_TO(ptr)
- #define yyless(n) \
- do \
- { \
- \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- *yy_cp = yyg->yy_hold_char; \
- YY_RESTORE_YY_MORE_OFFSET \
- yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; \
- } \
- while ( 0 )
- #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
- #ifndef YY_STRUCT_YY_BUFFER_STATE
- #define YY_STRUCT_YY_BUFFER_STATE
- struct yy_buffer_state
- {
- FILE *yy_input_file;
- char *yy_ch_buf;
- char *yy_buf_pos;
-
- int yy_buf_size;
-
- int yy_n_chars;
-
- int yy_is_our_buffer;
-
- int yy_is_interactive;
-
- int yy_at_bol;
- int yy_bs_lineno;
- int yy_bs_column;
-
- int yy_fill_buffer;
- int yy_buffer_status;
- #define YY_BUFFER_NEW 0
- #define YY_BUFFER_NORMAL 1
-
- #define YY_BUFFER_EOF_PENDING 2
- };
- #endif
- #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
- ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
- : NULL)
- #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
- void yyrestart ( FILE *input_file , yyscan_t yyscanner );
- void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
- YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
- void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
- void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
- void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
- void yypop_buffer_state ( yyscan_t yyscanner );
- static void yyensure_buffer_stack ( yyscan_t yyscanner );
- static void yy_load_buffer_state ( yyscan_t yyscanner );
- static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
- #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
- YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
- YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
- YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
- void *yyalloc ( yy_size_t , yyscan_t yyscanner );
- void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
- void yyfree ( void * , yyscan_t yyscanner );
- #define yy_new_buffer yy_create_buffer
- #define yy_set_interactive(is_interactive) \
- { \
- if ( ! YY_CURRENT_BUFFER ){ \
- yyensure_buffer_stack (yyscanner); \
- YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
- }
- #define yy_set_bol(at_bol) \
- { \
- if ( ! YY_CURRENT_BUFFER ){\
- yyensure_buffer_stack (yyscanner); \
- YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
- }
- #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
- #define cmCommandArgument_yywrap(yyscanner) (1)
- #define YY_SKIP_YYWRAP
- typedef flex_uint8_t YY_CHAR;
- typedef int yy_state_type;
- #define yytext_ptr yytext_r
- static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
- static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner);
- static int yy_get_next_buffer ( yyscan_t yyscanner );
- static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
- #define YY_DO_BEFORE_ACTION \
- yyg->yytext_ptr = yy_bp; \
- yyleng = (int) (yy_cp - yy_bp); \
- yyg->yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yyg->yy_c_buf_p = yy_cp;
- #define YY_NUM_RULES 14
- #define YY_END_OF_BUFFER 15
- struct yy_trans_info
- {
- flex_int32_t yy_verify;
- flex_int32_t yy_nxt;
- };
- static const flex_int16_t yy_accept[30] =
- { 0,
- 0, 0, 0, 0, 0, 0, 15, 9, 10, 7,
- 6, 14, 11, 5, 12, 13, 9, 0, 0, 4,
- 7, 0, 8, 2, 0, 3, 0, 1, 0
- } ;
- static const YY_CHAR yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 3, 1, 1, 1, 1,
- 1, 1, 4, 1, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
- 1, 1, 1, 5, 4, 4, 4, 4, 6, 4,
- 4, 4, 4, 4, 4, 4, 4, 7, 4, 4,
- 4, 4, 4, 4, 4, 8, 4, 4, 4, 4,
- 1, 9, 1, 1, 4, 1, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 10, 1, 11, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1
- } ;
- static const YY_CHAR yy_meta[12] =
- { 0,
- 1, 2, 3, 4, 3, 4, 4, 4, 3, 5,
- 3
- } ;
- static const flex_int16_t yy_base[35] =
- { 0,
- 0, 0, 31, 30, 29, 28, 36, 0, 6, 16,
- 0, 41, 41, 41, 0, 41, 0, 22, 22, 41,
- 18, 18, 41, 41, 7, 41, 4, 41, 41, 20,
- 21, 26, 9, 30
- } ;
- static const flex_int16_t yy_def[35] =
- { 0,
- 29, 1, 1, 1, 1, 1, 29, 30, 31, 32,
- 33, 29, 29, 29, 34, 29, 30, 31, 18, 29,
- 32, 33, 29, 29, 18, 29, 18, 29, 0, 29,
- 29, 29, 29, 29
- } ;
- static const flex_int16_t yy_nxt[53] =
- { 0,
- 8, 8, 9, 10, 11, 10, 10, 10, 12, 13,
- 14, 19, 22, 28, 27, 20, 17, 17, 17, 17,
- 17, 17, 26, 17, 18, 18, 21, 21, 25, 21,
- 23, 24, 23, 23, 23, 29, 16, 16, 15, 15,
- 7, 29, 29, 29, 29, 29, 29, 29, 29, 29,
- 29, 29
- } ;
- static const flex_int16_t yy_chk[53] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 9, 33, 27, 25, 9, 10, 10, 21, 21,
- 30, 30, 22, 30, 31, 31, 32, 32, 19, 32,
- 34, 18, 34, 34, 34, 7, 6, 5, 4, 3,
- 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
- 29, 29
- } ;
- #define REJECT reject_used_but_not_detected
- #define yymore() yymore_used_but_not_detected
- #define YY_MORE_ADJ 0
- #define YY_RESTORE_YY_MORE_OFFSET
- #include "cmCommandArgumentParserHelper.h"
- #undef YY_INPUT
- #define YY_INPUT(buf, result, max_size) \
- { result = yyextra->LexInput(buf, max_size); }
- #include "cmCommandArgumentParserTokens.h"
- static const char *DCURLYVariable = "${";
- static const char *RCURLYVariable = "}";
- static const char *ATVariable = "@";
- static const char *DOLLARVariable = "$";
- static const char *LCURLYVariable = "{";
- static const char *BSLASHVariable = "\\";
- #define INITIAL 0
- #define ESCAPES 1
- #define NOESCAPES 2
- #ifndef YY_EXTRA_TYPE
- #define YY_EXTRA_TYPE void *
- #endif
- struct yyguts_t
- {
-
- YY_EXTRA_TYPE yyextra_r;
-
- FILE *yyin_r, *yyout_r;
- size_t yy_buffer_stack_top;
- size_t yy_buffer_stack_max;
- YY_BUFFER_STATE * yy_buffer_stack;
- char yy_hold_char;
- int yy_n_chars;
- int yyleng_r;
- char *yy_c_buf_p;
- int yy_init;
- int yy_start;
- int yy_did_buffer_switch_on_eof;
- int yy_start_stack_ptr;
- int yy_start_stack_depth;
- int *yy_start_stack;
- yy_state_type yy_last_accepting_state;
- char* yy_last_accepting_cpos;
- int yylineno_r;
- int yy_flex_debug_r;
- char *yytext_r;
- int yy_more_flag;
- int yy_more_len;
- };
- static int yy_init_globals ( yyscan_t yyscanner );
- int yylex_init (yyscan_t* scanner);
- int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
- int yylex_destroy ( yyscan_t yyscanner );
- int yyget_debug ( yyscan_t yyscanner );
- void yyset_debug ( int debug_flag , yyscan_t yyscanner );
- YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
- void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
- FILE *yyget_in ( yyscan_t yyscanner );
- void yyset_in ( FILE * _in_str , yyscan_t yyscanner );
- FILE *yyget_out ( yyscan_t yyscanner );
- void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
- int yyget_leng ( yyscan_t yyscanner );
- char *yyget_text ( yyscan_t yyscanner );
- int yyget_lineno ( yyscan_t yyscanner );
- void yyset_lineno ( int _line_number , yyscan_t yyscanner );
- int yyget_column ( yyscan_t yyscanner );
- void yyset_column ( int _column_no , yyscan_t yyscanner );
- #ifndef YY_SKIP_YYWRAP
- #ifdef __cplusplus
- extern "C" int yywrap ( yyscan_t yyscanner );
- #else
- extern int yywrap ( yyscan_t yyscanner );
- #endif
- #endif
- #ifndef YY_NO_UNPUT
- #endif
- #ifndef yytext_ptr
- static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
- #endif
- #ifdef YY_NEED_STRLEN
- static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
- #endif
- #ifndef YY_NO_INPUT
- #ifdef __cplusplus
- static int yyinput ( yyscan_t yyscanner );
- #else
- static int input ( yyscan_t yyscanner );
- #endif
- #endif
- #ifndef YY_READ_BUF_SIZE
- #ifdef __ia64__
- #define YY_READ_BUF_SIZE 16384
- #else
- #define YY_READ_BUF_SIZE 8192
- #endif
- #endif
- #ifndef ECHO
- #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
- #endif
- #ifndef YY_INPUT
- #define YY_INPUT(buf,result,max_size) \
- if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
- { \
- int c = '*'; \
- int n; \
- for ( n = 0; n < max_size && \
- (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
- buf[n] = (char) c; \
- if ( c == '\n' ) \
- buf[n++] = (char) c; \
- if ( c == EOF && ferror( yyin ) ) \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- result = n; \
- } \
- else \
- { \
- errno=0; \
- while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
- { \
- if( errno != EINTR) \
- { \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- break; \
- } \
- errno=0; \
- clearerr(yyin); \
- } \
- }\
- \
- #endif
- #ifndef yyterminate
- #define yyterminate() return YY_NULL
- #endif
- #ifndef YY_START_STACK_INCR
- #define YY_START_STACK_INCR 25
- #endif
- #ifndef YY_FATAL_ERROR
- #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
- #endif
- #ifndef YY_DECL
- #define YY_DECL_IS_OURS 1
- extern int yylex (yyscan_t yyscanner);
- #define YY_DECL int yylex (yyscan_t yyscanner)
- #endif
- #ifndef YY_USER_ACTION
- #define YY_USER_ACTION
- #endif
- #ifndef YY_BREAK
- #define YY_BREAK break;
- #endif
- #define YY_RULE_SETUP \
- YY_USER_ACTION
- YY_DECL
- {
- yy_state_type yy_current_state;
- char *yy_cp, *yy_bp;
- int yy_act;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( !yyg->yy_init )
- {
- yyg->yy_init = 1;
- #ifdef YY_USER_INIT
- YY_USER_INIT;
- #endif
- if ( ! yyg->yy_start )
- yyg->yy_start = 1;
- if ( ! yyin )
- yyin = stdin;
- if ( ! yyout )
- yyout = stdout;
- if ( ! YY_CURRENT_BUFFER ) {
- yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
- }
- yy_load_buffer_state( yyscanner );
- }
- {
- while ( 1 )
- {
- yy_cp = yyg->yy_c_buf_p;
-
- *yy_cp = yyg->yy_hold_char;
-
- yy_bp = yy_cp;
- yy_current_state = yyg->yy_start;
- yy_match:
- do
- {
- YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 30 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- ++yy_cp;
- }
- while ( yy_base[yy_current_state] != 41 );
- yy_find_action:
- yy_act = yy_accept[yy_current_state];
- if ( yy_act == 0 )
- {
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- yy_act = yy_accept[yy_current_state];
- }
- YY_DO_BEFORE_ACTION;
- do_action:
- switch ( yy_act )
- {
- case 0:
-
- *yy_cp = yyg->yy_hold_char;
- yy_cp = yyg->yy_last_accepting_cpos;
- yy_current_state = yyg->yy_last_accepting_state;
- goto yy_find_action;
- case 1:
- YY_RULE_SETUP
- {
-
- yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2);
- return cal_ENVCURLY;
- }
- YY_BREAK
- case 2:
- YY_RULE_SETUP
- {
-
- yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2);
- return cal_NCURLY;
- }
- YY_BREAK
- case 3:
- YY_RULE_SETUP
- {
-
- yyextra->AllocateParserType(yylvalp, yytext+1, strlen(yytext)-2);
- return cal_ATNAME;
- }
- YY_BREAK
- case 4:
- YY_RULE_SETUP
- {
-
-
- yylvalp->str = DCURLYVariable;
- return cal_DCURLY;
- }
- YY_BREAK
- case 5:
- YY_RULE_SETUP
- {
-
-
- yylvalp->str = RCURLYVariable;
- return cal_RCURLY;
- }
- YY_BREAK
- case 6:
- YY_RULE_SETUP
- {
-
-
- yylvalp->str = ATVariable;
- return cal_AT;
- }
- YY_BREAK
- case 7:
- YY_RULE_SETUP
- {
-
- yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- return cal_NAME;
- }
- YY_BREAK
- case 8:
- YY_RULE_SETUP
- {
- if ( !yyextra->HandleEscapeSymbol(yylvalp, *(yytext+1)) )
- {
- return cal_ERROR;
- }
- return cal_SYMBOL;
- }
- YY_BREAK
- case 9:
- YY_RULE_SETUP
- {
-
- yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
- return cal_SYMBOL;
- }
- YY_BREAK
- case 10:
- YY_RULE_SETUP
- {
-
- yylvalp->str = DOLLARVariable;
- return cal_DOLLAR;
- }
- YY_BREAK
- case 11:
- YY_RULE_SETUP
- {
-
- yylvalp->str = LCURLYVariable;
- return cal_LCURLY;
- }
- YY_BREAK
- case 12:
- YY_RULE_SETUP
- {
-
- yylvalp->str = BSLASHVariable;
- return cal_BSLASH;
- }
- YY_BREAK
- case 13:
- YY_RULE_SETUP
- {
-
- yylvalp->str = BSLASHVariable;
- return cal_SYMBOL;
- }
- YY_BREAK
- case 14:
- YY_RULE_SETUP
- ECHO;
- YY_BREAK
- case YY_STATE_EOF(INITIAL):
- case YY_STATE_EOF(ESCAPES):
- case YY_STATE_EOF(NOESCAPES):
- yyterminate();
- case YY_END_OF_BUFFER:
- {
-
- int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
-
- *yy_cp = yyg->yy_hold_char;
- YY_RESTORE_YY_MORE_OFFSET
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
- {
-
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
- }
-
- if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
- {
- yy_state_type yy_next_state;
- yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
- yy_current_state = yy_get_previous_state( yyscanner );
-
- yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- if ( yy_next_state )
- {
-
- yy_cp = ++yyg->yy_c_buf_p;
- yy_current_state = yy_next_state;
- goto yy_match;
- }
- else
- {
- yy_cp = yyg->yy_c_buf_p;
- goto yy_find_action;
- }
- }
- else switch ( yy_get_next_buffer( yyscanner ) )
- {
- case EOB_ACT_END_OF_FILE:
- {
- yyg->yy_did_buffer_switch_on_eof = 0;
- if ( yywrap( yyscanner ) )
- {
-
- yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
- yy_act = YY_STATE_EOF(YY_START);
- goto do_action;
- }
- else
- {
- if ( ! yyg->yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
- }
- break;
- }
- case EOB_ACT_CONTINUE_SCAN:
- yyg->yy_c_buf_p =
- yyg->yytext_ptr + yy_amount_of_matched_text;
- yy_current_state = yy_get_previous_state( yyscanner );
- yy_cp = yyg->yy_c_buf_p;
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- goto yy_match;
- case EOB_ACT_LAST_MATCH:
- yyg->yy_c_buf_p =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
- yy_current_state = yy_get_previous_state( yyscanner );
- yy_cp = yyg->yy_c_buf_p;
- yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
- goto yy_find_action;
- }
- break;
- }
- default:
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- }
- }
- }
- }
- static int yy_get_next_buffer (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
- char *source = yyg->yytext_ptr;
- int number_to_move, i;
- int ret_val;
- if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed" );
- if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
- {
- if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
- {
-
- return EOB_ACT_END_OF_FILE;
- }
- else
- {
-
- return EOB_ACT_LAST_MATCH;
- }
- }
-
-
- number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
-
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
- else
- {
- int num_to_read =
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
- while ( num_to_read <= 0 )
- {
-
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
- int yy_c_buf_p_offset =
- (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
- if ( b->yy_is_our_buffer )
- {
- int new_size = b->yy_buf_size * 2;
- if ( new_size <= 0 )
- b->yy_buf_size += b->yy_buf_size / 8;
- else
- b->yy_buf_size *= 2;
- b->yy_ch_buf = (char *)
-
- yyrealloc( (void *) b->yy_ch_buf,
- (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
- }
- else
-
- b->yy_ch_buf = NULL;
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR(
- "fatal error - scanner input buffer overflow" );
- yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
- num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
- number_to_move - 1;
- }
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
-
- YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- yyg->yy_n_chars, num_to_read );
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
- if ( yyg->yy_n_chars == 0 )
- {
- if ( number_to_move == YY_MORE_ADJ )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- yyrestart( yyin , yyscanner);
- }
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
- YY_BUFFER_EOF_PENDING;
- }
- }
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
- if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
-
- int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
- (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
- if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
-
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
- }
- yyg->yy_n_chars += number_to_move;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
- yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
- return ret_val;
- }
- static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
- {
- yy_state_type yy_current_state;
- char *yy_cp;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_current_state = yyg->yy_start;
- for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
- {
- YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 30 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- }
- return yy_current_state;
- }
- static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
- {
- int yy_is_jam;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- char *yy_cp = yyg->yy_c_buf_p;
- YY_CHAR yy_c = 1;
- if ( yy_accept[yy_current_state] )
- {
- yyg->yy_last_accepting_state = yy_current_state;
- yyg->yy_last_accepting_cpos = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 30 )
- yy_c = yy_meta[yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
- yy_is_jam = (yy_current_state == 29);
- (void)yyg;
- return yy_is_jam ? 0 : yy_current_state;
- }
- #ifndef YY_NO_UNPUT
- #endif
- #ifndef YY_NO_INPUT
- #ifdef __cplusplus
- static int yyinput (yyscan_t yyscanner)
- #else
- static int input (yyscan_t yyscanner)
- #endif
- {
- int c;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
- {
-
- if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
-
- *yyg->yy_c_buf_p = '\0';
- else
- {
- int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
- ++yyg->yy_c_buf_p;
- switch ( yy_get_next_buffer( yyscanner ) )
- {
- case EOB_ACT_LAST_MATCH:
-
-
- yyrestart( yyin , yyscanner);
-
- case EOB_ACT_END_OF_FILE:
- {
- if ( yywrap( yyscanner ) )
- return 0;
- if ( ! yyg->yy_did_buffer_switch_on_eof )
- YY_NEW_FILE;
- #ifdef __cplusplus
- return yyinput(yyscanner);
- #else
- return input(yyscanner);
- #endif
- }
- case EOB_ACT_CONTINUE_SCAN:
- yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
- break;
- }
- }
- }
- c = *(unsigned char *) yyg->yy_c_buf_p;
- *yyg->yy_c_buf_p = '\0';
- yyg->yy_hold_char = *++yyg->yy_c_buf_p;
- return c;
- }
- #endif
- void yyrestart (FILE * input_file , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! YY_CURRENT_BUFFER ){
- yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
- }
- yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
- yy_load_buffer_state( yyscanner );
- }
- void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- yyensure_buffer_stack (yyscanner);
- if ( YY_CURRENT_BUFFER == new_buffer )
- return;
- if ( YY_CURRENT_BUFFER )
- {
-
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
- yy_load_buffer_state( yyscanner );
-
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
- static void yy_load_buffer_state (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
- yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
- yyg->yy_hold_char = *yyg->yy_c_buf_p;
- }
- YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
- {
- YY_BUFFER_STATE b;
- b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
- b->yy_buf_size = size;
-
- b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
- b->yy_is_our_buffer = 1;
- yy_init_buffer( b, file , yyscanner);
- return b;
- }
- void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! b )
- return;
- if ( b == YY_CURRENT_BUFFER )
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
- if ( b->yy_is_our_buffer )
- yyfree( (void *) b->yy_ch_buf , yyscanner );
- yyfree( (void *) b , yyscanner );
- }
- static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
- {
- int oerrno = errno;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_flush_buffer( b , yyscanner);
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
-
- if (b != YY_CURRENT_BUFFER){
- b->yy_bs_lineno = 1;
- b->yy_bs_column = 0;
- }
- b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
- errno = oerrno;
- }
- void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if ( ! b )
- return;
- b->yy_n_chars = 0;
-
- b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
- b->yy_buf_pos = &b->yy_ch_buf[0];
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
- if ( b == YY_CURRENT_BUFFER )
- yy_load_buffer_state( yyscanner );
- }
- void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (new_buffer == NULL)
- return;
- yyensure_buffer_stack(yyscanner);
-
- if ( YY_CURRENT_BUFFER )
- {
-
- *yyg->yy_c_buf_p = yyg->yy_hold_char;
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
- }
-
- if (YY_CURRENT_BUFFER)
- yyg->yy_buffer_stack_top++;
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
-
- yy_load_buffer_state( yyscanner );
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
- void yypop_buffer_state (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (!YY_CURRENT_BUFFER)
- return;
- yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
- YY_CURRENT_BUFFER_LVALUE = NULL;
- if (yyg->yy_buffer_stack_top > 0)
- --yyg->yy_buffer_stack_top;
- if (YY_CURRENT_BUFFER) {
- yy_load_buffer_state( yyscanner );
- yyg->yy_did_buffer_switch_on_eof = 1;
- }
- }
- static void yyensure_buffer_stack (yyscan_t yyscanner)
- {
- yy_size_t num_to_alloc;
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (!yyg->yy_buffer_stack) {
-
- num_to_alloc = 1;
- yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
- (num_to_alloc * sizeof(struct yy_buffer_state*)
- , yyscanner);
- if ( ! yyg->yy_buffer_stack )
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
- memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
- yyg->yy_buffer_stack_max = num_to_alloc;
- yyg->yy_buffer_stack_top = 0;
- return;
- }
- if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
-
- yy_size_t grow_size = 8 ;
- num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
- yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
- (yyg->yy_buffer_stack,
- num_to_alloc * sizeof(struct yy_buffer_state*)
- , yyscanner);
- if ( ! yyg->yy_buffer_stack )
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
-
- memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
- yyg->yy_buffer_stack_max = num_to_alloc;
- }
- }
- YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
- {
- YY_BUFFER_STATE b;
- if ( size < 2 ||
- base[size-2] != YY_END_OF_BUFFER_CHAR ||
- base[size-1] != YY_END_OF_BUFFER_CHAR )
-
- return NULL;
- b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
- b->yy_buf_size = (int) (size - 2);
- b->yy_buf_pos = b->yy_ch_buf = base;
- b->yy_is_our_buffer = 0;
- b->yy_input_file = NULL;
- b->yy_n_chars = b->yy_buf_size;
- b->yy_is_interactive = 0;
- b->yy_at_bol = 1;
- b->yy_fill_buffer = 0;
- b->yy_buffer_status = YY_BUFFER_NEW;
- yy_switch_to_buffer( b , yyscanner );
- return b;
- }
- YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
- {
- return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
- }
- YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner)
- {
- YY_BUFFER_STATE b;
- char *buf;
- yy_size_t n;
- int i;
-
- n = (yy_size_t) (_yybytes_len + 2);
- buf = (char *) yyalloc( n , yyscanner );
- if ( ! buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
- for ( i = 0; i < _yybytes_len; ++i )
- buf[i] = yybytes[i];
- buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
- b = yy_scan_buffer( buf, n , yyscanner);
- if ( ! b )
- YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
-
- b->yy_is_our_buffer = 1;
- return b;
- }
- #ifndef YY_EXIT_FAILURE
- #define YY_EXIT_FAILURE 2
- #endif
- static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- (void)yyg;
- fprintf( stderr, "%s\n", msg );
- exit( YY_EXIT_FAILURE );
- }
- #undef yyless
- #define yyless(n) \
- do \
- { \
- \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- yytext[yyleng] = yyg->yy_hold_char; \
- yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
- yyg->yy_hold_char = *yyg->yy_c_buf_p; \
- *yyg->yy_c_buf_p = '\0'; \
- yyleng = yyless_macro_arg; \
- } \
- while ( 0 )
- YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyextra;
- }
- int yyget_lineno (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (! YY_CURRENT_BUFFER)
- return 0;
- return yylineno;
- }
- int yyget_column (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if (! YY_CURRENT_BUFFER)
- return 0;
- return yycolumn;
- }
- FILE *yyget_in (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyin;
- }
- FILE *yyget_out (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyout;
- }
- int yyget_leng (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yyleng;
- }
- char *yyget_text (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yytext;
- }
- void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyextra = user_defined ;
- }
- void yyset_lineno (int _line_number , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (! YY_CURRENT_BUFFER )
- YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
- yylineno = _line_number;
- }
- void yyset_column (int _column_no , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- if (! YY_CURRENT_BUFFER )
- YY_FATAL_ERROR( "yyset_column called with no buffer" );
- yycolumn = _column_no;
- }
- void yyset_in (FILE * _in_str , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyin = _in_str ;
- }
- void yyset_out (FILE * _out_str , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yyout = _out_str ;
- }
- int yyget_debug (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- return yy_flex_debug;
- }
- void yyset_debug (int _bdebug , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- yy_flex_debug = _bdebug ;
- }
- int yylex_init(yyscan_t* ptr_yy_globals)
- {
- if (ptr_yy_globals == NULL){
- errno = EINVAL;
- return 1;
- }
- *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
- if (*ptr_yy_globals == NULL){
- errno = ENOMEM;
- return 1;
- }
-
- memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
- return yy_init_globals ( *ptr_yy_globals );
- }
- int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
- {
- struct yyguts_t dummy_yyguts;
- yyset_extra (yy_user_defined, &dummy_yyguts);
- if (ptr_yy_globals == NULL){
- errno = EINVAL;
- return 1;
- }
- *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
- if (*ptr_yy_globals == NULL){
- errno = ENOMEM;
- return 1;
- }
-
- memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
- yyset_extra (yy_user_defined, *ptr_yy_globals);
- return yy_init_globals ( *ptr_yy_globals );
- }
- static int yy_init_globals (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- yyg->yy_buffer_stack = NULL;
- yyg->yy_buffer_stack_top = 0;
- yyg->yy_buffer_stack_max = 0;
- yyg->yy_c_buf_p = NULL;
- yyg->yy_init = 0;
- yyg->yy_start = 0;
- yyg->yy_start_stack_ptr = 0;
- yyg->yy_start_stack_depth = 0;
- yyg->yy_start_stack = NULL;
- #ifdef YY_STDINIT
- yyin = stdin;
- yyout = stdout;
- #else
- yyin = NULL;
- yyout = NULL;
- #endif
-
- return 0;
- }
- int yylex_destroy (yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
-
- while(YY_CURRENT_BUFFER){
- yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
- YY_CURRENT_BUFFER_LVALUE = NULL;
- yypop_buffer_state(yyscanner);
- }
-
- yyfree(yyg->yy_buffer_stack , yyscanner);
- yyg->yy_buffer_stack = NULL;
-
- yyfree( yyg->yy_start_stack , yyscanner );
- yyg->yy_start_stack = NULL;
-
- yy_init_globals( yyscanner);
-
- yyfree ( yyscanner , yyscanner );
- yyscanner = NULL;
- return 0;
- }
- #ifndef yytext_ptr
- static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- (void)yyg;
- int i;
- for ( i = 0; i < n; ++i )
- s1[i] = s2[i];
- }
- #endif
- #ifdef YY_NEED_STRLEN
- static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
- {
- int n;
- for ( n = 0; s[n]; ++n )
- ;
- return n;
- }
- #endif
- void *yyalloc (yy_size_t size , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- (void)yyg;
- return malloc(size);
- }
- void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- (void)yyg;
-
- return realloc(ptr, size);
- }
- void yyfree (void * ptr , yyscan_t yyscanner)
- {
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- (void)yyg;
- free( (char *) ptr );
- }
- #define YYTABLES_NAME "yytables"
- void cmCommandArgument_SetupEscapes(yyscan_t yyscanner, bool noEscapes)
- {
-
- struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- if(noEscapes) {
- BEGIN(NOESCAPES);
- } else {
- BEGIN(ESCAPES);
- }
- }
|