資源簡介
華中科技大學 編譯原理 面向過程的C--語言的編譯器設計 功能包括:詞法分析和語法分析、語義分析、中間代碼生成的 源碼.zip

代碼片段和文件信息
#line?3?“lex.yy.c“
#define??YY_INT_ALIGNED?short?int
/*?A?lexical?scanner?generated?by?flex?*/
#define?FLEX_SCANNER
#define?YY_FLEX_MAJOR_VERSION?2
#define?YY_FLEX_MINOR_VERSION?5
#define?YY_FLEX_SUBMINOR_VERSION?35
#if?YY_FLEX_SUBMINOR_VERSION?>?0
#define?FLEX_BETA
#endif
/*?First?we?deal?with??platform-specific?or?compiler-specific?issues.?*/
/*?begin?standard?C?headers.?*/
#include?
#include?
#include?
#include?
/*?end?standard?C?headers.?*/
/*?flex?integer?type?definitions?*/
#ifndef?FLEXINT_H
#define?FLEXINT_H
/*?C99?systems?have?.?Non-C99?systems?may?or?may?not.?*/
#if?defined?(__STDC_VERSION__)?&&?__STDC_VERSION__?>=?199901L
/*?C99?says?to?define?__STDC_LIMIT_MACROS?before?including?stdint.h
?*?if?you?want?the?limit?(max/min)?macros?for?int?types.?
?*/
#ifndef?__STDC_LIMIT_MACROS
#define?__STDC_LIMIT_MACROS?1
#endif
#include?
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;
/*?Limits?of?integral?types.?*/
#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
#endif?/*?!?C99?*/
#endif?/*?!?FLEXINT_H?*/
#ifdef?__cplusplus
/*?The?“const“?storage-class-modifier?is?valid.?*/
#define?YY_USE_CONST
#else /*?!?__cplusplus?*/
/*?C99?requires?__STDC__?to?be?defined?as?1.?*/
#if?defined?(__STDC__)
#define?YY_USE_CONST
#endif /*?defined?(__STDC__)?*/
#endif /*?!?__cplusplus?*/
#ifdef?YY_USE_CONST
#define?yyconst?const
#else
#define?yyconst
#endif
/*?Returned?upon?end-of-file.?*/
#define?YY_NULL?0
/*?Promotes?a?possibly?negative?possibly?signed?char?to?an?unsigned
?*?integer?for?use?as?an?array?index.??If?the?signed?char?is?negative
?*?we?want?to?instead?treat?it?as?an?8-bit?unsigned?char?hence?the
?*?double?cast.
?*/
#define?YY_SC_TO_UI(c)?((unsigned?int)?(unsigned?char)?c)
/*?Enter?a?start?condition.??This?macro?really?ought?to?take?a?parameter
?*?but?we?do?it?the?disgusting?crufty?way?forced?on?us?by?the?()-less
?*?definition?of?BEGIN.
?*/
#define?BEGIN?(yy_start)?=?1?+?2?*
/*?Translate?the?current?start?state?into?a?value?that?can?be?later?handed
?*?to?BEGIN?to?return?to?the?state.??The?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-09-13?17:57??編譯原理\
?????目錄???????????0??2019-09-13?17:57??編譯原理\compiler1\
?????文件???????53562??2018-07-01?14:11??編譯原理\compiler1\lex.yy.c
?????文件????????4175??2018-06-13?17:51??編譯原理\compiler1\lexical.l
?????文件?????????346??2018-06-14?19:30??編譯原理\compiler1\main.c
?????文件?????????206??2018-05-28?22:41??編譯原理\compiler1\main.c~
?????文件???????31819??2018-07-01?14:11??編譯原理\compiler1\syntax.output
?????文件???????64432??2018-07-01?14:11??編譯原理\compiler1\syntax.tab.c
?????文件????????2685??2018-07-01?14:11??編譯原理\compiler1\syntax.tab.h
?????文件????????5217??2018-06-13?22:44??編譯原理\compiler1\syntax.y
?????文件???????36002??2018-07-01?14:11??編譯原理\compiler1\test
?????文件?????????146??2018-05-28?22:42??編譯原理\compiler1\text.c
?????文件?????????148??2018-05-28?22:42??編譯原理\compiler1\text.c~
?????文件????????1624??2018-06-13?23:39??編譯原理\compiler1\tree.c
?????文件????????2203??2018-06-13?23:34??編譯原理\compiler1\C語言產生式.c
?????目錄???????????0??2019-09-13?17:57??編譯原理\compiler2\
?????文件??????????39??2016-11-30?16:59??編譯原理\compiler2\1.cmm
?????文件??????????30??2016-11-30?18:00??編譯原理\compiler2\10.cmm
?????文件??????????31??2016-11-30?18:00??編譯原理\compiler2\11.cmm
?????文件??????????41??2016-11-30?18:00??編譯原理\compiler2\12.cmm
?????文件??????????64??2016-11-30?17:56??編譯原理\compiler2\13.cmm
?????文件?????????100??2016-11-30?17:56??編譯原理\compiler2\14.cmm
?????文件??????????60??2016-11-30?17:55??編譯原理\compiler2\15.cmm
?????文件??????????77??2014-07-06?00:17??編譯原理\compiler2\16.cmm
?????文件??????????51??2014-07-06?00:17??編譯原理\compiler2\17.cmm
?????文件??????????38??2014-07-06?00:17??編譯原理\compiler2\2.cmm
?????文件??????????37??2014-07-06?00:17??編譯原理\compiler2\3.cmm
?????文件??????????72??2014-07-06?00:17??編譯原理\compiler2\4.cmm
?????文件??????????33??2016-11-30?17:53??編譯原理\compiler2\5.cmm
?????文件??????????32??2014-07-06?00:17??編譯原理\compiler2\6.cmm
?????文件??????????34??2016-11-30?17:54??編譯原理\compiler2\7.cmm
............此處省略36個文件信息
評論
共有 條評論