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

📄 parser_h.frm

📁 C/C++词法语法分析程序
💻 FRM
字号:
/**********************************************************
**   PARSER_H.FRM
**   Coco/R C Support Frames.
**   Author: Frankie Arzu <farzu@uvg.edu.gt>
**
**   Jun 12, 1996   Version 1.06
**      Many fixes and suggestions thanks to
**      Pat Terry <cspt@cs.ru.ac.za>
**   Oct 11, 1997   Version 1.07 (No change)
**   Mar 13, 1998   Version 1.08 (No change)
**********************************************************/

#ifndef PARSER_HEADER_INCLUDE
#define PARSER_HEADER_INCLUDE

typedef void (*Error_Func) (int nr, int line, int col, long pos);

#define MinErrDist 2
#define MAXERROR   -->MaxErr

void Parse();
/* Parse the source */

int Successful();
/* Returns 1 if no errors have been recorded while parsing */

void SynError(int errno);
/* Report Syntactic Error errno */

void SemError(int errno);
/* Report Semantic Error errno */

#define LexString(lex, size)    S_GetString(S_Pos, S_Len, lex, size)
/* Retrieves Lex as exact spelling of current token */

#define LexName(lex, size)      S_GetName(S_Pos, S_Len, lex, size)
/* Retrieves Lex as name of current token (capitalized if IGNORE CASE) */

#define LookAheadString(lex, size)      S_GetString(S_NextPos, S_NextLen, lex, size)
/* Retrieves Lex as exact spelling of lookahead token */

#define LookAheadName(lex, size)        S_GetName(S_NextPos, S_NextLen, lex, size)
/* Retrieves Lex as name of lookahead token (capitalized if IGNORE CASE) */

#endif /* PARSER_HEADER_INCLUDE */

⌨️ 快捷键说明

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