diff options
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r-- | src/parser/parser.h | 252 |
1 files changed, 252 insertions, 0 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h new file mode 100644 index 0000000..fb4ff54 --- /dev/null +++ b/src/parser/parser.h @@ -0,0 +1,252 @@ +/* A Bison parser, made by GNU Bison 2.3. */ + +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + T_NUM = 258, + T_TOKEN = 259, + T_QSTRING = 260, + T_COMMENT = 261, + T_LINE = 262, + T_URI = 263, + T_URI_WILDCARD = 264, + T_DISPLAY = 265, + T_LANG = 266, + T_WORD = 267, + T_WKDAY = 268, + T_MONTH = 269, + T_GMT = 270, + T_SIP = 271, + T_METHOD = 272, + T_AUTH_DIGEST = 273, + T_AUTH_OTHER = 274, + T_IPV6ADDR = 275, + T_PARAMVAL = 276, + T_HDR_ACCEPT = 277, + T_HDR_ACCEPT_ENCODING = 278, + T_HDR_ACCEPT_LANGUAGE = 279, + T_HDR_ALERT_INFO = 280, + T_HDR_ALLOW = 281, + T_HDR_ALLOW_EVENTS = 282, + T_HDR_AUTHENTICATION_INFO = 283, + T_HDR_AUTHORIZATION = 284, + T_HDR_CALL_ID = 285, + T_HDR_CALL_INFO = 286, + T_HDR_CONTACT = 287, + T_HDR_CONTENT_DISP = 288, + T_HDR_CONTENT_ENCODING = 289, + T_HDR_CONTENT_LANGUAGE = 290, + T_HDR_CONTENT_LENGTH = 291, + T_HDR_CONTENT_TYPE = 292, + T_HDR_CSEQ = 293, + T_HDR_DATE = 294, + T_HDR_ERROR_INFO = 295, + T_HDR_EVENT = 296, + T_HDR_EXPIRES = 297, + T_HDR_FROM = 298, + T_HDR_IN_REPLY_TO = 299, + T_HDR_MAX_FORWARDS = 300, + T_HDR_MIN_EXPIRES = 301, + T_HDR_MIME_VERSION = 302, + T_HDR_ORGANIZATION = 303, + T_HDR_P_ASSERTED_IDENTITY = 304, + T_HDR_P_PREFERRED_IDENTITY = 305, + T_HDR_PRIORITY = 306, + T_HDR_PRIVACY = 307, + T_HDR_PROXY_AUTHENTICATE = 308, + T_HDR_PROXY_AUTHORIZATION = 309, + T_HDR_PROXY_REQUIRE = 310, + T_HDR_RACK = 311, + T_HDR_RECORD_ROUTE = 312, + T_HDR_SERVICE_ROUTE = 313, + T_HDR_REFER_SUB = 314, + T_HDR_REFER_TO = 315, + T_HDR_REFERRED_BY = 316, + T_HDR_REPLACES = 317, + T_HDR_REPLY_TO = 318, + T_HDR_REQUIRE = 319, + T_HDR_REQUEST_DISPOSITION = 320, + T_HDR_RETRY_AFTER = 321, + T_HDR_ROUTE = 322, + T_HDR_RSEQ = 323, + T_HDR_SERVER = 324, + T_HDR_SIP_ETAG = 325, + T_HDR_SIP_IF_MATCH = 326, + T_HDR_SUBJECT = 327, + T_HDR_SUBSCRIPTION_STATE = 328, + T_HDR_SUPPORTED = 329, + T_HDR_TIMESTAMP = 330, + T_HDR_TO = 331, + T_HDR_UNSUPPORTED = 332, + T_HDR_USER_AGENT = 333, + T_HDR_VIA = 334, + T_HDR_WARNING = 335, + T_HDR_WWW_AUTHENTICATE = 336, + T_HDR_UNKNOWN = 337, + T_CRLF = 338, + T_ERROR = 339, + T_NULL = 340 + }; +#endif +/* Tokens. */ +#define T_NUM 258 +#define T_TOKEN 259 +#define T_QSTRING 260 +#define T_COMMENT 261 +#define T_LINE 262 +#define T_URI 263 +#define T_URI_WILDCARD 264 +#define T_DISPLAY 265 +#define T_LANG 266 +#define T_WORD 267 +#define T_WKDAY 268 +#define T_MONTH 269 +#define T_GMT 270 +#define T_SIP 271 +#define T_METHOD 272 +#define T_AUTH_DIGEST 273 +#define T_AUTH_OTHER 274 +#define T_IPV6ADDR 275 +#define T_PARAMVAL 276 +#define T_HDR_ACCEPT 277 +#define T_HDR_ACCEPT_ENCODING 278 +#define T_HDR_ACCEPT_LANGUAGE 279 +#define T_HDR_ALERT_INFO 280 +#define T_HDR_ALLOW 281 +#define T_HDR_ALLOW_EVENTS 282 +#define T_HDR_AUTHENTICATION_INFO 283 +#define T_HDR_AUTHORIZATION 284 +#define T_HDR_CALL_ID 285 +#define T_HDR_CALL_INFO 286 +#define T_HDR_CONTACT 287 +#define T_HDR_CONTENT_DISP 288 +#define T_HDR_CONTENT_ENCODING 289 +#define T_HDR_CONTENT_LANGUAGE 290 +#define T_HDR_CONTENT_LENGTH 291 +#define T_HDR_CONTENT_TYPE 292 +#define T_HDR_CSEQ 293 +#define T_HDR_DATE 294 +#define T_HDR_ERROR_INFO 295 +#define T_HDR_EVENT 296 +#define T_HDR_EXPIRES 297 +#define T_HDR_FROM 298 +#define T_HDR_IN_REPLY_TO 299 +#define T_HDR_MAX_FORWARDS 300 +#define T_HDR_MIN_EXPIRES 301 +#define T_HDR_MIME_VERSION 302 +#define T_HDR_ORGANIZATION 303 +#define T_HDR_P_ASSERTED_IDENTITY 304 +#define T_HDR_P_PREFERRED_IDENTITY 305 +#define T_HDR_PRIORITY 306 +#define T_HDR_PRIVACY 307 +#define T_HDR_PROXY_AUTHENTICATE 308 +#define T_HDR_PROXY_AUTHORIZATION 309 +#define T_HDR_PROXY_REQUIRE 310 +#define T_HDR_RACK 311 +#define T_HDR_RECORD_ROUTE 312 +#define T_HDR_SERVICE_ROUTE 313 +#define T_HDR_REFER_SUB 314 +#define T_HDR_REFER_TO 315 +#define T_HDR_REFERRED_BY 316 +#define T_HDR_REPLACES 317 +#define T_HDR_REPLY_TO 318 +#define T_HDR_REQUIRE 319 +#define T_HDR_REQUEST_DISPOSITION 320 +#define T_HDR_RETRY_AFTER 321 +#define T_HDR_ROUTE 322 +#define T_HDR_RSEQ 323 +#define T_HDR_SERVER 324 +#define T_HDR_SIP_ETAG 325 +#define T_HDR_SIP_IF_MATCH 326 +#define T_HDR_SUBJECT 327 +#define T_HDR_SUBSCRIPTION_STATE 328 +#define T_HDR_SUPPORTED 329 +#define T_HDR_TIMESTAMP 330 +#define T_HDR_TO 331 +#define T_HDR_UNSUPPORTED 332 +#define T_HDR_USER_AGENT 333 +#define T_HDR_VIA 334 +#define T_HDR_WARNING 335 +#define T_HDR_WWW_AUTHENTICATE 336 +#define T_HDR_UNKNOWN 337 +#define T_CRLF 338 +#define T_ERROR 339 +#define T_NULL 340 + + + + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +#line 49 "parser.yxx" +{ + int yyt_int; + ulong yyt_ulong; + float yyt_float; + string *yyt_str; + t_parameter *yyt_param; + list<t_parameter> *yyt_params; + t_media *yyt_media; + t_coding *yyt_coding; + t_language *yyt_language; + t_alert_param *yyt_alert_param; + t_info_param *yyt_info_param; + list<t_contact_param> *yyt_contacts; + t_contact_param *yyt_contact; + t_error_param *yyt_error_param; + t_identity *yyt_from_addr; + t_route *yyt_route; + t_server *yyt_server; + t_via *yyt_via; + t_warning *yyt_warning; + t_digest_response *yyt_dig_resp; + t_credentials *yyt_credentials; + t_digest_challenge *yyt_dig_chlg; + t_challenge *yyt_challenge; +} +/* Line 1529 of yacc.c. */ +#line 245 "parser.h" + YYSTYPE; +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +#endif + +extern YYSTYPE yylval; + |