📄 token.h
字号:
/******************************************************** * token -- token handling module * * * * Functions: * * next_token -- get the next token from the input * ********************************************************//* * Define the enumerated list of tokens. */enum TOKEN_TYPE { T_NUMBER, /* Simple number (floating point or integer */ T_STRING, /* String or character constant */ T_COMMENT, /* Comment */ T_NEWLINE, /* Newline character */ T_OPERATOR, /* Arithmetic operator */ T_L_PAREN, /* Character "(" */ T_R_PAREN, /* Character ")" */ T_L_CURLY, /* Character "{" */ T_R_CURLY, /* Character "}" */ T_ID, /* Identifier */ T_EOF /* End of File */};/* * We use #define here instead of "const int" because so many old * software packeges use #define. It's very possible we've picked * up a header file that uses #define for TRUE/FALSE. So that * why we protect against double defines as well as using #define * ourselves. */#ifndef TRUE#define TRUE 1 /* Define a simple TRUE/FALSE values */#define FALSE 0#endif /* TRUE *//******************************************************** * next_token -- read the next token in an input stream * * * * Parameters * * in_file -- file to read * * * * Returns * * next token * ********************************************************/extern enum TOKEN_TYPE next_token(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -