Source-highlight Library
langdefparser.h
1 /* A Bison parser, made by GNU Bison 2.5. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 /* As a special exception, you may create a larger work that contains
21  part or all of the Bison parser skeleton and distribute that work
22  under terms of your choice, so long as that work isn't itself a
23  parser generator using the skeleton or a modified version thereof
24  as a parser skeleton. Alternatively, if you modify or redistribute
25  the parser skeleton itself, you may (at your option) remove this
26  special exception, which will cause the skeleton and the resulting
27  Bison output files to be licensed under the GNU General Public
28  License without this special exception.
29 
30  This special exception was added by the Free Software Foundation in
31  version 2.2 of Bison. */
32 
33 
34 /* Tokens. */
35 #ifndef YYTOKENTYPE
36 # define YYTOKENTYPE
37  /* Put the tokens into the symbol table, so that GDB and other debuggers
38  know about them. */
39  enum yytokentype {
40  BEGIN_T = 258,
41  END_T = 259,
42  ENVIRONMENT_T = 260,
43  STATE_T = 261,
44  MULTILINE_T = 262,
45  DELIM_T = 263,
46  START_T = 264,
47  ESCAPE_T = 265,
48  NESTED_T = 266,
49  EXIT_ALL = 267,
50  EXIT_T = 268,
51  VARDEF_T = 269,
52  REDEF_T = 270,
53  SUBST_T = 271,
54  NONSENSITIVE_T = 272,
55  WRONG_BACKREFERENCE = 273,
56  LEVEL = 274,
57  KEY = 275,
58  STRINGDEF = 276,
59  REGEXPNOPREPROC = 277,
60  VARUSE = 278,
61  BACKREFVAR = 279,
62  WRONG_INCLUDE_FILE = 280,
63  REGEXPDEF = 281
64  };
65 #endif
66 /* Tokens. */
67 #define BEGIN_T 258
68 #define END_T 259
69 #define ENVIRONMENT_T 260
70 #define STATE_T 261
71 #define MULTILINE_T 262
72 #define DELIM_T 263
73 #define START_T 264
74 #define ESCAPE_T 265
75 #define NESTED_T 266
76 #define EXIT_ALL 267
77 #define EXIT_T 268
78 #define VARDEF_T 269
79 #define REDEF_T 270
80 #define SUBST_T 271
81 #define NONSENSITIVE_T 272
82 #define WRONG_BACKREFERENCE 273
83 #define LEVEL 274
84 #define KEY 275
85 #define STRINGDEF 276
86 #define REGEXPNOPREPROC 277
87 #define VARUSE 278
88 #define BACKREFVAR 279
89 #define WRONG_INCLUDE_FILE 280
90 #define REGEXPDEF 281
91 
92 
93 
94 
95 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
96 typedef union YYSTYPE
97 {
98 
99 /* Line 2068 of yacc.c */
100 #line 95 "../../../lib/srchilite/langdefparser.yy"
101 
102  int tok ; /* command */
103  bool booloption ;
104  const std::string * string ; /* string : id, ... */
106  class StringDefs *stringdefs;
107  class LangElem *langelem;
108  class StateLangElem *statelangelem;
109  class StateStartLangElem *statestartlangelem;
110  class LangElems *langelems;
111  class NamedSubExpsLangElem *namedsubexpslangelem;
112  struct Key *key;
113  struct ElementNamesList *keys;
114  int flag ;
115  unsigned int level;
116 
117 
118 
119 /* Line 2068 of yacc.c */
120 #line 121 "../../../lib/srchilite/langdefparser.h"
121 } YYSTYPE;
122 # define YYSTYPE_IS_TRIVIAL 1
123 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
124 # define YYSTYPE_IS_DECLARED 1
125 #endif
126 
127 extern YYSTYPE langdef_lval;
128 
129 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
130 typedef struct YYLTYPE
131 {
132  int first_line;
133  int first_column;
134  int last_line;
135  int last_column;
136 } YYLTYPE;
137 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
138 # define YYLTYPE_IS_DECLARED 1
139 # define YYLTYPE_IS_TRIVIAL 1
140 #endif
141 
142 extern YYLTYPE langdef_lloc;
143 
Definition: langdefparser.cc:167
represent a string for a language definition file's element
Definition: stringdef.h:25
std::string stringdef
the actual content
Definition: stringdef.h:28
Definition: langdefparser.cc:288
Definition: langdefparser.cc:155
Definition: langdefparser.cc:256