📄 lexer.h
字号:
/***** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -