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