Skip to content
Tcl Source Code Artifact [1538ce08c9]
Login

Artifact [1538ce08c9]

Artifact 1538ce08c9eabdd72413986580766c8e4a9b7b5e:


/* A Bison parser, made by GNU Bison 2.3.  */

/* Skeleton interface for Bison GLR parsers in C

   Copyright (C) 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 {
     END = 0,
     T_ANDAND = 258,
     T_ARROW = 259,
     T_ATTRIBUTE = 260,
     T_BANG = 261,
     T_BANGTWID = 262,
     T_BITAND = 263,
     T_BITOR = 264,
     T_BITNOT = 265,
     T_BITXOR = 266,
     T_BREAK = 267,
     T_CLASS = 268,
     T_COLON = 269,
     T_COMMA = 270,
     T_CONSTRUCTOR = 271,
     T_CONTINUE = 272,
     T_DEFINED = 273,
     T_DESTRUCTOR = 274,
     T_DO = 275,
     T_DOT = 276,
     T_DOTDOT = 277,
     T_ELLIPSIS = 278,
     T_ELSE = 279,
     T_EQ = 280,
     T_EQBITAND = 281,
     T_EQBITOR = 282,
     T_EQBITXOR = 283,
     T_EQDOT = 284,
     T_EQLSHIFT = 285,
     T_EQMINUS = 286,
     T_EQPERC = 287,
     T_EQPLUS = 288,
     T_EQRSHIFT = 289,
     T_EQSTAR = 290,
     T_EQSLASH = 291,
     T_EQTWID = 292,
     T_EQUALS = 293,
     T_EQUALEQUAL = 294,
     T_EXPAND = 295,
     T_EXTERN = 296,
     T_FLOAT = 297,
     T_FLOAT_LITERAL = 298,
     T_FOR = 299,
     T_FOREACH = 300,
     T_GOTO = 301,
     T_GE = 302,
     T_GREATER = 303,
     T_GREATEREQ = 304,
     T_GT = 305,
     T_HTML = 306,
     T_ID = 307,
     T_IF = 308,
     T_INSTANCE = 309,
     T_INT = 310,
     T_INT_LITERAL = 311,
     T_LHTML_EXPR_START = 312,
     T_LHTML_EXPR_END = 313,
     T_LBRACE = 314,
     T_LBRACKET = 315,
     T_LE = 316,
     T_LEFT_INTERPOL = 317,
     T_LEFT_INTERPOL_RE = 318,
     T_LESSTHAN = 319,
     T_LESSTHANEQ = 320,
     T_LPAREN = 321,
     T_LSHIFT = 322,
     T_LT = 323,
     T_MINUS = 324,
     T_MINUSMINUS = 325,
     T_NE = 326,
     T_NOTEQUAL = 327,
     T_OROR = 328,
     T_PATTERN = 329,
     T_PERC = 330,
     T_PLUS = 331,
     T_PLUSPLUS = 332,
     T_POINTS = 333,
     T_POLY = 334,
     T_PRIVATE = 335,
     T_PUBLIC = 336,
     T_QUESTION = 337,
     T_RBRACE = 338,
     T_RBRACKET = 339,
     T_RE = 340,
     T_RE_MODIFIER = 341,
     T_RETURN = 342,
     T_RIGHT_INTERPOL = 343,
     T_RIGHT_INTERPOL_RE = 344,
     T_RPAREN = 345,
     T_RSHIFT = 346,
     T_TRY = 347,
     T_SEMI = 348,
     T_SLASH = 349,
     T_SPLIT = 350,
     T_STAR = 351,
     T_START_BACKTICK = 352,
     T_STR_BACKTICK = 353,
     T_STR_LITERAL = 354,
     T_STRCAT = 355,
     T_STRING = 356,
     T_STRUCT = 357,
     T_SUBST = 358,
     T_TYPE = 359,
     T_TYPEDEF = 360,
     T_UNLESS = 361,
     T_ARGUSED = 362,
     T_OPTIONAL = 363,
     T_MUSTBETYPE = 364,
     T_VOID = 365,
     T_WIDGET = 366,
     T_WHILE = 367,
     T_PRAGMA = 368,
     T_SWITCH = 369,
     T_CASE = 370,
     T_DEFAULT = 371,
     LOWEST = 372,
     ADDRESS = 373,
     UMINUS = 374,
     UPLUS = 375,
     PREFIX_INCDEC = 376,
     HIGHEST = 377
   };
#endif


/* Copy the first part of user declarations.  */
#line 1 "/Users/rob/bk/dev-L-lhtml-fix/src/gui/tcltk/tcl/generic/Lgrammar.y"

/*
 * Copyright (c) 2006-2008 BitMover, Inc.
 */
#include <stdio.h>
#include "Lcompile.h"

/* L_lex is generated by flex. */
extern int	L_lex (void);

#define YYERROR_VERBOSE
#define L_error L_synerr


#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE 
#line 53 "/Users/rob/bk/dev-L-lhtml-fix/src/gui/tcltk/tcl/generic/Lgrammar.y"
{
	long	i;
	char	*s;
	Tcl_Obj	*obj;
	Type	*Type;
	Expr	*Expr;
	Block	*Block;
	ForEach	*ForEach;
	Switch	*Switch;
	Case	*Case;
	FnDecl	*FnDecl;
	Cond	*Cond;
	Loop	*Loop;
	Stmt	*Stmt;
	TopLev	*TopLev;
	VarDecl	*VarDecl;
	ClsDecl	*ClsDecl;
	struct {
		Type	*t;
		char	*s;
	} Typename;
}
/* Line 2616 of glr.c.  */
#line 209 "Lgrammar.h"
	YYSTYPE;
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif

#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE
{

  int first_line;
  int first_column;
  int last_line;
  int last_column;

} YYLTYPE;
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif


extern YYSTYPE L_lval;

extern YYLTYPE L_lloc;