blob: 5b46fd39e6e1b1925e8f14e7258c47653a51fbc8 [file] [log] [blame]
/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */
/* 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. */
#ifndef YY_YY_PARSER_YANG_BIS_H_INCLUDED
# define YY_YY_PARSER_YANG_BIS_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
UNION_KEYWORD = 258,
ANYXML_KEYWORD = 259,
WHITESPACE = 260,
ERROR = 261,
EOL = 262,
STRING = 263,
STRINGS = 264,
IDENTIFIER = 265,
IDENTIFIERPREFIX = 266,
REVISION_DATE = 267,
TAB = 268,
DOUBLEDOT = 269,
URI = 270,
INTEGER = 271,
NON_NEGATIVE_INTEGER = 272,
ZERO = 273,
DECIMAL = 274,
ARGUMENT_KEYWORD = 275,
AUGMENT_KEYWORD = 276,
BASE_KEYWORD = 277,
BELONGS_TO_KEYWORD = 278,
BIT_KEYWORD = 279,
CASE_KEYWORD = 280,
CHOICE_KEYWORD = 281,
CONFIG_KEYWORD = 282,
CONTACT_KEYWORD = 283,
CONTAINER_KEYWORD = 284,
DEFAULT_KEYWORD = 285,
DESCRIPTION_KEYWORD = 286,
ENUM_KEYWORD = 287,
ERROR_APP_TAG_KEYWORD = 288,
ERROR_MESSAGE_KEYWORD = 289,
EXTENSION_KEYWORD = 290,
DEVIATION_KEYWORD = 291,
DEVIATE_KEYWORD = 292,
FEATURE_KEYWORD = 293,
FRACTION_DIGITS_KEYWORD = 294,
GROUPING_KEYWORD = 295,
IDENTITY_KEYWORD = 296,
IF_FEATURE_KEYWORD = 297,
IMPORT_KEYWORD = 298,
INCLUDE_KEYWORD = 299,
INPUT_KEYWORD = 300,
KEY_KEYWORD = 301,
LEAF_KEYWORD = 302,
LEAF_LIST_KEYWORD = 303,
LENGTH_KEYWORD = 304,
LIST_KEYWORD = 305,
MANDATORY_KEYWORD = 306,
MAX_ELEMENTS_KEYWORD = 307,
MIN_ELEMENTS_KEYWORD = 308,
MODULE_KEYWORD = 309,
MUST_KEYWORD = 310,
NAMESPACE_KEYWORD = 311,
NOTIFICATION_KEYWORD = 312,
ORDERED_BY_KEYWORD = 313,
ORGANIZATION_KEYWORD = 314,
OUTPUT_KEYWORD = 315,
PATH_KEYWORD = 316,
PATTERN_KEYWORD = 317,
POSITION_KEYWORD = 318,
PREFIX_KEYWORD = 319,
PRESENCE_KEYWORD = 320,
RANGE_KEYWORD = 321,
REFERENCE_KEYWORD = 322,
REFINE_KEYWORD = 323,
REQUIRE_INSTANCE_KEYWORD = 324,
REVISION_KEYWORD = 325,
REVISION_DATE_KEYWORD = 326,
RPC_KEYWORD = 327,
STATUS_KEYWORD = 328,
SUBMODULE_KEYWORD = 329,
TYPE_KEYWORD = 330,
TYPEDEF_KEYWORD = 331,
UNIQUE_KEYWORD = 332,
UNITS_KEYWORD = 333,
USES_KEYWORD = 334,
VALUE_KEYWORD = 335,
WHEN_KEYWORD = 336,
YANG_VERSION_KEYWORD = 337,
YIN_ELEMENT_KEYWORD = 338,
ADD_KEYWORD = 339,
CURRENT_KEYWORD = 340,
DELETE_KEYWORD = 341,
DEPRECATED_KEYWORD = 342,
FALSE_KEYWORD = 343,
NOT_SUPPORTED_KEYWORD = 344,
OBSOLETE_KEYWORD = 345,
REPLACE_KEYWORD = 346,
SYSTEM_KEYWORD = 347,
TRUE_KEYWORD = 348,
UNBOUNDED_KEYWORD = 349,
USER_KEYWORD = 350,
ACTION_KEYWORD = 351,
MODIFIER_KEYWORD = 352,
ANYDATA_KEYWORD = 353,
NODE = 354,
NODE_PRINT = 355
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
int32_t i;
uint32_t uint;
char *str;
char **p_str;
void *v;
char ch;
struct yang_type *type;
struct lys_deviation *dev;
struct lys_deviate *deviate;
union {
uint32_t index;
struct lys_node_container *container;
struct lys_node_anydata *anydata;
struct type_node node;
struct lys_node_case *cs;
struct lys_node_grp *grouping;
struct lys_refine *refine;
struct lys_node_notif *notif;
struct lys_node_uses *uses;
struct lys_node_inout *inout;
struct lys_node_augment *augment;
} nodes;
enum yytokentype token;
struct {
void *actual;
enum yytokentype token;
} backup_token;
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
int yyparse (void *scanner, struct yang_parameter *param);
#endif /* !YY_YY_PARSER_YANG_BIS_H_INCLUDED */