lexer.h

来自「C程序漏洞检查!」· C头文件 代码 · 共 48 行

H
48
字号
/***** uno: lexer.h *****//* Copyright (c) 2000-2003 by Lucent Technologies - Bell Laboratories     *//* All Rights Reserved.  This software is for educational purposes only.  *//* Permission is given to distribute this code provided that this intro-  *//* ductory message is not removed and no monies are exchanged.            *//* No guarantee is expressed or implied by the distribution of this code. *//* Software written by Gerard J. Holzmann based on the public domain      *//* ANSI-C parser Ctree Version 0.14 from Shaun Flisakowski                */#ifndef LEXER_H#define LEXER_H#include <stdio.h>#include "config.h"#include "tree.h"BEGIN_HEADER/* Maximum length for strings and identifiers */#define MAX_STRING_LEN        512/* If we allow a comment as a token, we need to let them be larger. */#define MAX_TOKN_LEN        8192typedef union {    treenode *node;    leafnode *leaf;    if_node  *ifn;    for_node *forn;} tree_union;/*    For Flex compatibility  */#undef  YYSTYPE#define YYSTYPE tree_unionvoid get_lineno (void);void yywarn  (char *s);int  yyerror (char *s);int  yyerr   (char *s);END_HEADER#endif  /* LEXER_H */

⌨️ 快捷键说明

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