|
Source-highlight Library
|
00001 00002 /* A Bison parser, made by GNU Bison 2.4.1. */ 00003 00004 /* Skeleton interface for Bison's Yacc-like parsers in C 00005 00006 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 00007 Free Software Foundation, Inc. 00008 00009 This program is free software: you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation, either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00021 00022 /* As a special exception, you may create a larger work that contains 00023 part or all of the Bison parser skeleton and distribute that work 00024 under terms of your choice, so long as that work isn't itself a 00025 parser generator using the skeleton or a modified version thereof 00026 as a parser skeleton. Alternatively, if you modify or redistribute 00027 the parser skeleton itself, you may (at your option) remove this 00028 special exception, which will cause the skeleton and the resulting 00029 Bison output files to be licensed under the GNU General Public 00030 License without this special exception. 00031 00032 This special exception was added by the Free Software Foundation in 00033 version 2.2 of Bison. */ 00034 00035 00036 /* Tokens. */ 00037 #ifndef YYTOKENTYPE 00038 # define YYTOKENTYPE 00039 /* Put the tokens into the symbol table, so that GDB and other debuggers 00040 know about them. */ 00041 enum yytokentype { 00042 BEGIN_T = 258, 00043 END_T = 259, 00044 ENVIRONMENT_T = 260, 00045 STATE_T = 261, 00046 MULTILINE_T = 262, 00047 DELIM_T = 263, 00048 START_T = 264, 00049 ESCAPE_T = 265, 00050 NESTED_T = 266, 00051 EXIT_ALL = 267, 00052 EXIT_T = 268, 00053 VARDEF_T = 269, 00054 REDEF_T = 270, 00055 SUBST_T = 271, 00056 NONSENSITIVE_T = 272, 00057 WRONG_BACKREFERENCE = 273, 00058 LEVEL = 274, 00059 KEY = 275, 00060 STRINGDEF = 276, 00061 REGEXPNOPREPROC = 277, 00062 VARUSE = 278, 00063 BACKREFVAR = 279, 00064 WRONG_INCLUDE_FILE = 280, 00065 REGEXPDEF = 281 00066 }; 00067 #endif 00068 /* Tokens. */ 00069 #define BEGIN_T 258 00070 #define END_T 259 00071 #define ENVIRONMENT_T 260 00072 #define STATE_T 261 00073 #define MULTILINE_T 262 00074 #define DELIM_T 263 00075 #define START_T 264 00076 #define ESCAPE_T 265 00077 #define NESTED_T 266 00078 #define EXIT_ALL 267 00079 #define EXIT_T 268 00080 #define VARDEF_T 269 00081 #define REDEF_T 270 00082 #define SUBST_T 271 00083 #define NONSENSITIVE_T 272 00084 #define WRONG_BACKREFERENCE 273 00085 #define LEVEL 274 00086 #define KEY 275 00087 #define STRINGDEF 276 00088 #define REGEXPNOPREPROC 277 00089 #define VARUSE 278 00090 #define BACKREFVAR 279 00091 #define WRONG_INCLUDE_FILE 280 00092 #define REGEXPDEF 281 00093 00094 00095 00096 00097 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 00098 typedef union YYSTYPE 00099 { 00100 00101 /* Line 1676 of yacc.c */ 00102 #line 95 "../../../lib/srchilite/langdefparser.yy" 00103 00104 int tok ; /* command */ 00105 bool booloption ; 00106 const std::string * string ; /* string : id, ... */ 00107 class srchilite::StringDef *stringdef; 00108 class StringDefs *stringdefs; 00109 class LangElem *langelem; 00110 class StateLangElem *statelangelem; 00111 class StateStartLangElem *statestartlangelem; 00112 class LangElems *langelems; 00113 class NamedSubExpsLangElem *namedsubexpslangelem; 00114 struct Key *key; 00115 struct ElementNamesList *keys; 00116 int flag ; 00117 unsigned int level; 00118 00119 00120 00121 /* Line 1676 of yacc.c */ 00122 #line 123 "../../../lib/srchilite/langdefparser.h" 00123 } YYSTYPE; 00124 # define YYSTYPE_IS_TRIVIAL 1 00125 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 00126 # define YYSTYPE_IS_DECLARED 1 00127 #endif 00128 00129 extern YYSTYPE langdef_lval; 00130 00131 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED 00132 typedef struct YYLTYPE 00133 { 00134 int first_line; 00135 int first_column; 00136 int last_line; 00137 int last_column; 00138 } YYLTYPE; 00139 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ 00140 # define YYLTYPE_IS_DECLARED 1 00141 # define YYLTYPE_IS_TRIVIAL 1 00142 #endif 00143 00144 extern YYLTYPE langdef_lloc; 00145