⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 用于词法分析的词法分析器
💻 CPP
📖 第 1 页 / 共 4 页
字号:
	  else return 1;	}    }    int ipfx1() {  	if (!good()) { set(ios::failbit); return 0; }	else {	  if (_tie && rdbuf()->in_avail() == 0) _tie->flush();	  return 1;	}    }    void isfx() { }    int get() { if (!ipfx1()) return (-1) ;		else { int ch = _strbuf->sbumpc();		       if (ch == (-1) ) set(ios::eofbit);		       return ch;		     } }    int peek();    _G_size_t  gcount() { return _gcount; }    istream& ignore(int n=1, int delim = (-1) );    int sync ();    istream& seekg(streampos);    istream& seekg(streamoff, _seek_dir);    streampos tellg();    istream& putback(char ch) {	if (good() && _strbuf->sputbackc(ch) == (-1) ) clear(ios::badbit);	return *this;}    istream& unget() {	if (good() && _strbuf->sungetc() == (-1) ) clear(ios::badbit);	return *this;}    istream& scan(const char *format ...);    istream& vscan(const char *format, _G_va_list  args);    istream& unget(char ch) { return putback(ch); }    int skip(int i);    streambuf* istreambuf() const { return _strbuf; }    istream& operator>>(char*);    istream& operator>>(unsigned char* p) { return operator>>((char*)p); }    istream& operator>>(__signed  char*p) { return operator>>((char*)p); }    istream& operator>>(char& c);    istream& operator>>(unsigned char& c) {return operator>>((char&)c);}    istream& operator>>(__signed  char& c) {return operator>>((char&)c);}    istream& operator>>(int&);    istream& operator>>(long&);    istream& operator>>(long long&);    istream& operator>>(unsigned long long&);    istream& operator>>(short&);    istream& operator>>(unsigned int&);    istream& operator>>(unsigned long&);    istream& operator>>(unsigned short&);    istream& operator>>(bool&);    istream& operator>>(float&);    istream& operator>>(double&);    istream& operator>>(long double&);    istream& operator>>( __manip func) {(*func)(*this); return *this;}    istream& operator>>(__imanip func) { return (*func)(*this); }    istream& operator>>(streambuf*);};class iostream : public istream, public ostream{  public:    iostream() { }    iostream(streambuf* sb, ostream*tied= ((void*)0) );};class _IO_istream_withassign : public istream {public:  _IO_istream_withassign& operator=(istream&);};class _IO_ostream_withassign : public ostream {public:  _IO_ostream_withassign& operator=(ostream&);};extern _IO_istream_withassign cin; extern _IO_ostream_withassign cout, cerr, clog;struct Iostream_init { } ;   inline ios& dec(ios& i){ i.setf(ios::dec, ios::dec|ios::hex|ios::oct); return i; }inline ios& hex(ios& i){ i.setf(ios::hex, ios::dec|ios::hex|ios::oct); return i; }inline ios& oct(ios& i){ i.setf(ios::oct, ios::dec|ios::hex|ios::oct); return i; }}  # 31 "/usr/include/g++/stream.h" 2 3extern "C++" {extern char* form(const char*, ...);extern char* dec(long, int=0);extern char* dec(int, int=0);extern char* dec(unsigned long, int=0);extern char* dec(unsigned int, int=0);extern char* hex(long, int=0);extern char* hex(int, int=0);extern char* hex(unsigned long, int=0);extern char* hex(unsigned int, int=0);extern char* oct(long, int=0);extern char* oct(int, int=0);extern char* oct(unsigned long, int=0);extern char* oct(unsigned int, int=0);char*        chr(char ch, int width = 0);char*        str(const char* s, int width = 0);inline istream& WS(istream& str) { return ws(str); }}  # 25 "/usr/include/g++/istream.h" 2 3# 12 "CodeFrags.h" 2# 1 "/usr/include/g++/std/string.h" 1 3 # 1 "/usr/include/g++/std/bastring.h" 1 3                     #pragma interface# 1 "/usr/include/g++/std/stddef.h" 1 3  #pragma interface "std/stddef.h"# 1 "/usr/include/g++/std/cstddef.h" 1 3  # 1 "/usr/lib/gcc-lib/i486-linux/2.7.2.1/include/stddef.h" 1 3      # 59 "/usr/lib/gcc-lib/i486-linux/2.7.2.1/include/stddef.h" 3     typedef int ptrdiff_t;   typedef unsigned int size_t;    # 288 "/usr/lib/gcc-lib/i486-linux/2.7.2.1/include/stddef.h" 3  # 6 "/usr/include/g++/std/cstddef.h" 2 3# 12 "/usr/include/g++/std/stddef.h" 2 3extern "C++" {const size_t NPOS = (size_t)(-1);typedef void fvoid_t();typedef _G_wint_t wint_t;}  # 35 "/usr/include/g++/std/bastring.h" 2 3# 1 "/usr/include/g++/std/straits.h" 1 3                      #pragma interface "std/straits.h"extern "C++" {template <class charT>struct string_char_traits {  typedef charT char_type;       static void assign (char_type& c1, const char_type& c2)    { c1 = c2; }  static bool eq (const char_type& c1, const char_type& c2)    { return (c1 == c2); }  static bool ne (const char_type& c1, const char_type& c2)    { return !(c1 == c2); }  static bool lt (const char_type& c1, const char_type& c2)    { return (c1 < c2); }  static char_type eos () { return char_type(); }    static bool is_del(char_type a) { return 0; }          static int compare (const char_type* s1, const char_type* s2, size_t n)    {      size_t i;      for (i = 0; i < n; ++i)	if (ne (s1[i], s2[i]))	  return lt (s1[i], s2[i]) ? -1 : 1;      return 0;    }      static size_t length (const char_type* s)    {      size_t l = 0;      while (ne (*s++, eos ()))	++l;      return l;    }  static char_type* copy (char_type* s1, const char_type* s2, size_t n)    {      for (; n--; )	assign (s1[n], s2[n]);      return s1;    }  static char_type* move (char_type* s1, const char_type* s2, size_t n)    {      char_type a[n];      size_t i;      for (i = 0; i < n; ++i)	assign (a[i], s2[i]);      for (i = 0; i < n; ++i)	assign (s1[i], a[i]);      return s1;    }  static char_type* set (char_type* s1, const char_type& c, size_t n)    {      for (; n--; )	assign (s1[n], c);      return s1;    }};class istream;class ostream;# 1 "/usr/include/g++/std/cctype.h" 1 3  # 105 "/usr/include/g++/std/straits.h" 2 3# 1 "/usr/include/g++/std/cstring.h" 1 3  # 16 "/usr/include/g++/std/cstring.h" 3# 1 "/usr/include/string.h" 1 3  extern "C" {    extern void *  memmove  (void *  __dest, __const void *  __src,			     size_t __n)  ; extern void *  __memccpy  (void *  __dest, __const void *  __src,			       int __c, size_t __n)  ;extern void *  memccpy  (void *  __dest, __const void *  __src,			     int __c, size_t __n)  ; extern void *  memset  (void *  __s, int __c, size_t __n)  ;  extern void *  memchr  (__const void *  __s, int __c, size_t __n)  ; extern char *strcpy  (char *__dest, __const char *__src)  ; extern char *strncpy  (char *__dest, __const char *__src, size_t __n)  ; extern char *strcat  (char *__dest, __const char *__src)  ; extern char *strncat  (char *__dest, __const char *__src, size_t __n)  ; extern int strcmp  (__const char *__s1, __const char *__s2)  ; extern int strncmp  (__const char *__s1, __const char *__s2, size_t __n)  ; extern int strcoll  (__const char *__s1, __const char *__s2)  ; extern size_t strxfrm  (char *__dest, __const char *__src, size_t __n)  ; extern char *strdup  (__const char *__s)  ; extern char *strchr  (__const char *__s, int __c)  ; extern char *strrchr  (__const char *__s, int __c)  ; extern size_t strcspn  (__const char *__s, __const char *__reject)  ; extern size_t strspn  (__const char *__s, __const char *__accept)  ; extern char *strpbrk  (__const char *__s, __const char *__accept)  ; extern char *strstr  (__const char *__haystack, __const char *__needle)  ; extern char *strtok  (char *__s, __const char *__delim)  ; extern void *  memmem  (__const void *  __haystack,			    size_t __haystacklen,			    __const void *  __needle,			    size_t __needlelen)  ; extern size_t strlen  (__const char *__s)  ; extern char *strerror  (int __errnum)  ; extern char *index  (__const char *__s, int __c)  ; extern char *rindex  (__const char *__s, int __c)  ;# 149 "/usr/include/string.h" 3 extern void bcopy  (__const void *  __src, void *  __dest, int __n)  ; extern void bzero  (void *  __s, int __n)  ; extern int bcmp  (__const void *  __s1, __const void *  __s2, int __n)  ; extern int ffs  (int __i)  ; extern int strcasecmp  (__const char *__s1, __const char *__s2)  ; extern char *strsep  (char **__stringp, __const char *__delim)  ; extern int strncasecmp  (__const char *__s1, __const char *__s2,			     size_t __n)  ; extern char *strsignal  (int __sig)  ; extern char *stpcpy  (char *__dest, __const char *__src)  ; extern char *__stpncpy  (char *__dest, __const char *__src, size_t __n)  ;extern char *stpncpy  (char *__dest, __const char *__src, size_t __n)  ; extern char *strfry  (char *__string)  ; extern void *  memfrob  (void *  __s, size_t __n)  ;extern void swab  (__const void *  __from, void *  __to,                        size_t __nbytes)  ;} # 18 "/usr/include/g++/std/cstring.h" 2 3# 70 "/usr/include/g++/std/cstring.h" 3# 106 "/usr/include/g++/std/straits.h" 2 3

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -