lexsymb.h

来自「我作编译原理课程设计时写的一个图形化的小型开发环境」· C头文件 代码 · 共 27 行

H
27
字号
// Union to pass information between lexer and caller
typedef union {
   char *str;
} YYSTYPE;

extern YYSTYPE yylval;

// Lexer constants
enum {
   UNUSED = 257,  // start above 256 (we can also return actual chars)
   ERROR_TOKEN, // returned if illegal character found
   IF,
   ELSE,
   PRINT,
   INPUT,
   ASSIGN,     // assign
   EQUAL,      // test if equal
   CONCAT,     // string-concatenate
   END_STMT,   // end of statement
   OPEN_PAR,   // opening parenthesis
   CLOSE_PAR,  // closing parenthesis
   BEGIN_CS,   // begin compound statement
   END_CS,     // end   compound statement
   ID,         // identifier
   STRING      // string constant
};

⌨️ 快捷键说明

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