cm_parse.h

来自「小型编译系统的源代码」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef _CM_PARSE_H
#define _CM_PARSE_H

#include <yacc.h>

#define INT 257
#define CHAR 258
#define FLOAT 259
#define VOID 260
#define IF 261
#define ELSE 262
#define WHILE 263
#define FOR 264
#define RETURN 265
#define ID 266
#define NUM 267
#define FLOATNUM 268
#define CONSTCHAR 269
#define AND 270
#define OR 271
#define NOT 272
#define ASSIGN 273
#define EQ 274
#define LT 275
#define LE 276
#define GT 277
#define GE 278
#define NE 279
#define PLUS 280
#define MINUS 281
#define TIMES 282
#define OVER 283
#define LPAREN 284
#define RPAREN 285
#define SEMICOLON 286
#define COMMA 287
#define LBRACKET 288
#define RBRACKET 289
#define LBRACE 290
#define RBRACE 291
#define ERROR 292
#define ENDFILE 293
#endif

⌨️ 快捷键说明

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