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

📄 lexsymb.h

📁 一个自定义简单脚本引擎的实现代码
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -