From holgerschurig@gmx.de Sat Jan 05 13:58:51 2002
Received: from mail.gmx.net ([213.165.64.20])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16Mw1q-0003UC-00
	for <gnue-dev@gnu.org>; Sat, 05 Jan 2002 13:58:50 -0500
Received: (qmail 1323 invoked by uid 0); 5 Jan 2002 18:58:49 -0000
Received: from p5080a1a2.dip0.t-ipconnect.de (HELO holger.mn-logistik.de) (80.128.161.162)
  by mail.gmx.net (mp010-rz3) with SMTP; 5 Jan 2002 18:58:49 -0000
Received: from there (localhost [127.0.0.1])
	by holger.mn-logistik.de (Postfix) with SMTP id F108539E5
	for <gnue-dev@gnu.org>; Sat,  5 Jan 2002 19:59:24 +0100 (CET)
Content-Type: text/plain;
  charset="iso-8859-1"
From: Holger Schurig <holgerschurig@gmx.de>
To: gnue-dev@gnu.org
Date: Sat, 5 Jan 2002 19:59:24 +0100
X-Mailer: KMail [version 1.3.2]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <20020105185924.F108539E5@holger.mn-logistik.de>
Subject: [Gnue-dev] fixing bug in forms/setup.py: gfcvs has empty line at front
Sender: gnue-dev-admin@gnu.org
Errors-To: gnue-dev-admin@gnu.org
X-BeenThere: gnue-dev@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:gnue-dev-request@gnu.org?subject=help>
List-Post: <mailto:gnue-dev@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=subscribe>
List-Id: <gnue-dev.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/gnue-dev/>

./setup.py creates the gfcvs script and installs it. This script starts 
with an empty line, then with "#/bin/bash". Somehow this works when 
invoked from bash, but it does not work when invoked from strace. This 
patch fixes this:

cvs server: Diffing .
Index: setup.py
===================================================================
RCS file: /cvsroot/gnue/gnue/forms/setup.py,v
retrieving revision 1.55
diff -u -r1.55 setup.py
--- setup.py    8 Dec 2001 06:17:43 -0000       1.55
+++ setup.py    5 Jan 2002 18:56:43 -0000
@@ -52,7 +52,7 @@

 def developer_install():
   pwd = os.getcwd()
-  gfcvs = """
+  gfcvs = """\
 #!/bin/sh
      if [ "z$GNUE_CONNECTIONS" = "z" ]
       then


From holgerschurig@gmx.de Sun Jan 06 15:19:27 2002
Received: from mail.gmx.net ([213.165.64.20])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16NJlP-0000B8-00
	for <gnue-dev@gnu.org>; Sun, 06 Jan 2002 15:19:27 -0500
Received: (qmail 19906 invoked by uid 0); 6 Jan 2002 20:19:25 -0000
Received: from p5080a207.dip0.t-ipconnect.de (HELO holger.mn-logistik.de) (80.128.162.7)
  by mail.gmx.net (mp007-rz3) with SMTP; 6 Jan 2002 20:19:25 -0000
Received: from there (localhost [127.0.0.1])
	by holger.mn-logistik.de (Postfix) with SMTP id BF9EB39FE
	for <gnue-dev@gnu.org>; Sun,  6 Jan 2002 21:20:05 +0100 (CET)
Content-Type: text/plain;
  charset="iso-8859-1"
From: Holger Schurig <holgerschurig@gmx.de>
To: gnue-dev@gnu.org
Date: Sun, 6 Jan 2002 21:20:05 +0100
X-Mailer: KMail [version 1.3.2]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <20020106202005.BF9EB39FE@holger.mn-logistik.de>
Subject: [Gnue-dev] Adventures with geas: strange old parser?
Sender: gnue-dev-admin@gnu.org
Errors-To: gnue-dev-admin@gnu.org
X-BeenThere: gnue-dev@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:gnue-dev-request@gnu.org?subject=help>
List-Post: <mailto:gnue-dev@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=subscribe>
List-Id: <gnue-dev.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/gnue-dev/>

This morning I had some adventures with geas. I've got the CVS version 
of it and had some sort of trouble. So I compiled it with 
--enable-debug. I was able to resolve some of it with on #gnuenterprise 
with neilt. Other things remain open.

I used the geas.conf file in the geas/src directory as a starting point 
and changed it so that one one classdir and methodir line was in there, 
pointing to the ../examples.

When I started geas-server, it said something like:

holger:/usr/src/gnue/geas/src# ./geas-server
Trying to open config file '/usr/local/etc/geas.conf'
nope, so trying config file 'geas.conf'
Loading aliases from file 'geas-alias.cfg'

GNU Enterprise Application Server
Version 0.0.6 DEBUG
Database support compiled for: PostgreSQL
Copyright 2001 Free Software Foundation

See the file 'COPYING' for details of the Gnu Public License
that covers this program

http://www.gnue.org/

warning: [geas-server.c/994] [readOptions] Debugging support has been 
turned off.
Preparing server side data handling classes
Initialising data monitor and log system.
geas.log tracks all data accesses.
Debugging output logged to 'geas.debug.log'
Loading initial list of reserved words
Load business class definitions (old parser)

++++ Pass 1 File: ../examples/businessobjects/addrbook.gcd
error: file ../examples/businessobjects/addrbook.gcd, line 21:
Duplicate class name found.
class person
      ^

++++ Pass 1 File: ../examples/businessobjects/test.gcd
     Found include: ../businessobjects/subdir/test2.inc, processing now.
error: file ../examples/businessobjects/test.gcd, line 9:
Duplicate class name found.
class test
      ^

error: file ../examples/businessobjects/test.gcd, line 27:
Duplicate class name found.
type money
     ^

error: file ../examples/businessobjects/test.gcd, line 33:
Duplicate class name found.
class rtest
      ^

error: file ../examples/businessobjects/test.gcd, line 54:
Duplicate class name found.
class timetest
      ^

message: Too many errors. File load failed.
Load business class definitions (new parser)
addrbook.gcd:7: no format allowed for this type
    text name<20>;
                ^
addrbook.gcd:16: no format allowed for this type
    text description<16>;
                       ^
addrbook.gcd:17: no format allowed for this type
    text value<16>;
                 ^
addrbook.gcd:18: unknown type 'object'
    object person;
           ^
addrbook.gcd:26: unknown type 'lookup'
    lookup country : addressbook::country(id).name = countrycode;
           ^
Initialising business class method handling.
Loading file ../examples/businessobjects/methods/addrbook.geas.py
Loading file ../examples/businessobjects/methods/test.geas.py
Now registering methods from gcds.
geas-server: classdata.c:1002: odl_tree_list_classes: Assertion `tree 
!= ((void *)0)' failed.
Aborted


From holgerschurig@gmx.de Sun Jan 06 15:26:48 2002
Received: from mail.gmx.net ([213.165.64.20])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16NJsW-0000gl-00
	for <gnue-dev@gnu.org>; Sun, 06 Jan 2002 15:26:48 -0500
Received: (qmail 15693 invoked by uid 0); 6 Jan 2002 20:26:46 -0000
Received: from p5080a207.dip0.t-ipconnect.de (HELO holger.mn-logistik.de) (80.128.162.7)
  by mail.gmx.net (mp003-rz3) with SMTP; 6 Jan 2002 20:26:46 -0000
Received: from there (localhost [127.0.0.1])
	by holger.mn-logistik.de (Postfix) with SMTP id A434039FE
	for <gnue-dev@gnu.org>; Sun,  6 Jan 2002 21:27:26 +0100 (CET)
Content-Type: text/plain;
  charset="iso-8859-1"
From: Holger Schurig <holgerschurig@gmx.de>
To: gnue-dev@gnu.org
Date: Sun, 6 Jan 2002 21:27:26 +0100
X-Mailer: KMail [version 1.3.2]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <20020106202726.A434039FE@holger.mn-logistik.de>
Subject: [Gnue-dev] problems with new parser, too
Sender: gnue-dev-admin@gnu.org
Errors-To: gnue-dev-admin@gnu.org
X-BeenThere: gnue-dev@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:gnue-dev-request@gnu.org?subject=help>
List-Post: <mailto:gnue-dev@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=subscribe>
List-Id: <gnue-dev.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/gnue-dev/>

So I thought the old parser is buggy and commented out the call to this 
parser:


/* note: server side classes must be first, so can be inherited from */
// message ("Load business class definitions (old parser)");
// load_class_files ();

message ("Load business class definitions (new parser)");
init_classdef ();

Now it worked better. It still shows strange errors ...

Load business class definitions (new parser)
addrbook.gcd:7: no format allowed for this type
    text name<20>;
                ^
addrbook.gcd:16: no format allowed for this type
    text description<16>;
                       ^
addrbook.gcd:17: no format allowed for this type
    text value<16>;
                 ^
addrbook.gcd:18: unknown type 'object'
    object person;
           ^
addrbook.gcd:26: unknown type 'lookup'
    lookup country : addressbook::country(id).name = countrycode;
           ^

However, it continued afterwards. But it produced bad SQL statements. 
Later on it said:

[create table geas__user (sys_id char(32) , sys_cre_user varchar(16) , 
sys_cre_time datetime , sys_mod_user varchar(16) , sys_mod_time 
datetime , username varchar(32) , password varchar(32) , 
_currenttransaction char(32) , primary key (sys_id) )] succeeded
error: [postgresql.c/878] [postgresql_update_tables] [create table 
geas__searchfield (sys_id char(32) , sys_cre_user varchar(16) , 
sys_cre_time datetime , sys_mod_user varchar(16) , sys_mod_time 
datetime , invert bool , casesensitive bool , test int2 , field 
varchar(128) , value varchar(128) , constraint char(32) , primary key 
(sys_id) )] failed error: [postgresql.c/879] [postgresql_update_tables] 
ERROR:  parser: parse error at or near "char"

I copied the SQL statement and fed it peace by peace into PostgreSQL 
(7.1.3-5 from Debian). It turned out that PostgreSQL doesn't like a 
field with the name "constraint". Constraint is actually named in 
postgresql.reserved.lst.

Another statement that didn't made it was

error: [postgresql.c/878] [postgresql_update_tables] [create table 
geas__listitem (sys_id char(32) , sys_cre_user varchar(16) , 
sys_cre_time datetime , sys_mod_user varchar(16) , sys_mod_time 
datetime , position int2 , listid char(32) , reference char(32) , 
primary key (sys_id) )] failed
error: [postgresql.c/879] [postgresql_update_tables] ERROR:  parser: 
parse error at or near "position"


Greetings,
Holger


From neilt@gnue.org Sun Jan 06 15:45:36 2002
Received: from custmail0.corp.aus.wayport.net ([216.12.231.21])
	by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian))
	id 16NKAi-0003Fd-00
	for <gnue-dev@gnu.org>; Sun, 06 Jan 2002 15:45:36 -0500
Received: from [64.134.54.175] (dhcp64-134-54-175.chan.dca.wayport.net [64.134.54.175])
	by custmail0.corp.aus.wayport.net (8.11.4/8.11.4) with ESMTP id g06Kk3Q08073
	for <gnue-dev@gnu.org>; Sun, 6 Jan 2002 20:46:04 GMT
Mime-Version: 1.0
X-Sender: ntiffin@mail.earthlink.net (Unverified)
Message-Id: <a05101002b85e679a7eda@[64.134.54.175]>
Date: Sun, 6 Jan 2002 15:45:10 -0500
To: gnue-dev@gnu.org
From: Neil Tiffin <neilt@gnue.org>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Subject: [Gnue-dev] packages dir
Sender: gnue-dev-admin@gnu.org
Errors-To: gnue-dev-admin@gnu.org
X-BeenThere: gnue-dev@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:gnue-dev-request@gnu.org?subject=help>
List-Post: <mailto:gnue-dev@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=subscribe>
List-Id: <gnue-dev.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/gnue-dev/>

Reinhard,

Is the packages directory syntax for the new or old parser?

-- 
Neil
neilt@gnue.org
GNU Enterprise
http://www.gnuenterprise.org/
http://www.gnuenterprise.org/~neilt/sc.html


From holgerschurig@gmx.de Sun Jan 06 17:03:17 2002
Received: from mail.gmx.net ([213.165.64.20])
	by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian))
	id 16NLNs-0000T9-00
	for <gnue-dev@gnu.org>; Sun, 06 Jan 2002 17:03:16 -0500
Received: (qmail 14049 invoked by uid 0); 6 Jan 2002 22:03:08 -0000
Received: from p5080a207.dip0.t-ipconnect.de (HELO holger.mn-logistik.de) (80.128.162.7)
  by mail.gmx.net (mp013-rz3) with SMTP; 6 Jan 2002 22:03:08 -0000
Received: from there (localhost [127.0.0.1])
	by holger.mn-logistik.de (Postfix) with SMTP id 07E9339FE
	for <gnue-dev@gnu.org>; Sun,  6 Jan 2002 23:03:49 +0100 (CET)
From: Holger Schurig <holgerschurig@gmx.de>
To: gnue-dev@gnu.org
Date: Sun, 6 Jan 2002 23:03:48 +0100
X-Mailer: KMail [version 1.3.2]
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="------------Boundary-00=_CMEJ5S7EZQI7K7HIOYUP"
Message-Id: <20020106220349.07E9339FE@holger.mn-logistik.de>
Subject: [Gnue-dev] reinhard@gnue.org
Sender: gnue-dev-admin@gnu.org
Errors-To: gnue-dev-admin@gnu.org
X-BeenThere: gnue-dev@gnu.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:gnue-dev-request@gnu.org?subject=help>
List-Post: <mailto:gnue-dev@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=subscribe>
List-Id: <gnue-dev.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/gnue-dev>,
	<mailto:gnue-dev-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/gnue-dev/>

--------------Boundary-00=_CMEJ5S7EZQI7K7HIOYUP
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit



--------------Boundary-00=_CMEJ5S7EZQI7K7HIOYUP
Content-Type: text/x-c;
  charset="iso-8859-1";
  name="yparser.c"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="yparser.c"


/* A Bison parser, made from yparser.y
   by GNU bison 1.30.  */

#define YYBISON 1  /* Identify Bison output.  */

# define=09UNSIGNED=09257
# define=09TRIGGERTYPE=09258
# define=09ENUM=09259
# define=09LOOKUP=09260
# define=09LIST=09261
# define=09REFERENCE=09262
# define=09CALCULATED=09263
# define=09TRIGGER=09264
# define=09UNIQUE=09265
# define=09INDEX=09266
# define=09SINGLETON=09267
# define=09CTYPE=09268
# define=09MODULE=09269
# define=09CLASS=09270
# define=09EXTEND=09271
# define=09PUBLIC=09272
# define=09PROTECTED=09273
# define=09PRIVATE=09274
# define=09FINAL=09275
# define=09ABSTRACT=09276
# define=09NOT=09277
# define=09NUL=09278
# define=09READONLY=09279
# define=09ORDER=09280
# define=09BY=09281
# define=09DESC=09282
# define=09SYMBOL=09283
# define=09DATATYPE=09284
# define=09STRING=09285
# define=09INTEGER=09286
# define=09DOUBLE=09287

#line 2 "yparser.y"


#include <glib.h>
#include <stdlib.h>
#include <string.h>

#include "config.h"
#include "gcdparser.h"
#include "classdata.h"

      /* use the more useful verbose error messages */
#define YYERROR_VERBOSE 1
#define YYDEBUG 1

      /* defaults to everything public */
unsigned long int current_access =3D ODL_ACCESS_PUBLIC;

      /* from lparser.l */
#include "lparser.h"

      /* error checking function prototypes */
void dtype_unsigned_check( gboolean isunsigned , const char *datatype );

/*
int indent =3D 0;
void doindent (void)
{
  int i;
  for( i=3D0 ; i<indent ; i++ )
    {
      printf(" ");
    }
}
*/

struct _odl_container *yycurrent_container =3D NULL;
struct _odl_container *beforefind =3D NULL;   /* used with find class to =
restore last position */

static gboolean is_a_type =3D FALSE;


#line 44 "yparser.y"
typedef union {
    char                  *string;
    signed long int        integer;
    unsigned long int      uint;
    gint64                 int64;
    gboolean               boolean;
    double                 floating;
    gboolean               bool_value;
    struct _odl_argument   *arg;
    GList                  *list;
    odl_item               *item;
    _odl_datatype          *datatype;
    odl_argument           *argument;
    _odl_datasource        *datasource;
} YYSTYPE;
#include <stdio.h>



#define=09YYFINAL=09=09247
#define=09YYFLAG=09=09-32768
#define=09YYNTBASE=0948

/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
#define YYTRANSLATE(x) ((unsigned)(x) <=3D 287 ? yytranslate[x] : 116)

/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
static const char yytranslate[] =3D
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      39,    40,    41,     2,    38,     2,    47,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,    34,    35,
      44,    46,    45,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,    42,     2,    43,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    36,     2,    37,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     3,     4,     5,
       6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
      16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
      26,    27,    28,    29,    30,    31,    32,    33
};

#if YYDEBUG !=3D 0
static const short yyprhs[] =3D
{
       0,     0,     1,     3,     4,     5,     6,     7,     8,     9,
      10,    11,    12,    13,    15,    18,    19,    21,    23,    25,
      27,    28,    30,    32,    34,    35,    38,    39,    42,    44,
      49,    51,    53,    55,    57,    60,    62,    66,    70,    74,
      78,    83,    93,    94,   108,   109,   123,   134,   140,   142,
     146,   147,   150,   152,   156,   158,   161,   165,   169,   172,
     175,   179,   182,   185,   188,   191,   194,   197,   200,   203,
     206,   211,   215,   217,   221,   224,   227,   229,   232,   236,
     241,   242,   246,   250,   256,   260,   266,   267,   270,   273,
     276,   279,   282,   284,   287,   288,   290,   296,   298,   302,
     307,   315,   316,   318,   322,   324,   328,   331,   336,   340,
     343,   345,   347,   351,   353,   355,   359,   364,   369,   376,
     383,   390,   391,   392,   393,   395
};
static const short yyrhs[] =3D
{
      -1,    59,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    72,     0,    59,    72,     0,     0,    61,
       0,    18,     0,    20,     0,    19,     0,     0,    21,     0,
      22,     0,    13,     0,     0,    11,    49,     0,     0,     3,
      49,     0,    29,     0,    65,    34,    34,    29,     0,    65,
       0,    29,     0,    29,     0,    29,     0,    29,    51,     0,
      29,     0,    60,    73,    35,     0,    60,    74,    35,     0,
      60,    78,    35,     0,    60,    76,    35,     0,    60,     5,
      79,    35,     0,    15,    68,    53,    36,    49,    59,    37,
      54,    49,     0,     0,    62,    16,    50,    69,    75,    57,
      81,    36,    49,    83,    37,    58,    49,     0,     0,    62,
      14,    50,    69,    77,    57,    81,    36,    49,    83,    37,
      58,    49,     0,    17,    50,    66,    55,    36,    49,    83,
      37,    56,    49,     0,    67,    36,    80,    37,    49,     0,
      29,     0,    80,    38,    29,     0,     0,    34,    82,     0,
      66,     0,    82,    38,    66,     0,    84,     0,    83,    84,
       0,    61,    34,    49,     0,    85,    35,    49,     0,    60,
      74,     0,    60,    76,     0,    63,    12,    86,     0,    88,
      95,     0,    88,    97,     0,     6,   109,     0,     7,   110,
       0,     8,   111,     0,     9,   112,     0,    10,   113,     0,
      25,    96,     0,     5,    79,     0,    26,    49,    27,   115,
       0,    39,    87,    40,     0,    71,     0,    87,    38,    71,
       0,    64,    30,     0,     5,    65,     0,    65,     0,    65,
      41,     0,    65,    42,    43,     0,    65,    42,    32,    43,
       0,     0,    44,    32,    45,     0,    44,    33,    45,     0,
      44,    32,    38,    32,    45,     0,    44,    31,    45,     0,
      44,    32,    38,    31,    45,     0,     0,    46,    31,     0,
      46,    32,     0,    46,    33,     0,    46,    29,     0,    23,
      24,     0,    91,     0,    92,    91,     0,     0,    92,     0,
      70,    89,    90,    93,    52,     0,    94,     0,    95,    38,
      94,     0,    70,    52,    34,    71,     0,    70,    52,    39,
      49,    98,    40,    50,     0,     0,   100,     0,    88,    29,
      49,     0,    99,     0,   100,    38,    99,     0,    29,    47,
       0,   101,    39,   104,    40,     0,    39,   104,    40,     0,
     101,    71,     0,    71,     0,    65,     0,   103,    38,    65,
       0,   103,     0,   103,     0,   108,    47,    65,     0,    65,
      39,   105,    40,     0,    65,    39,   105,    40,     0,    70,
      52,    34,   106,    46,   102,     0,    70,    52,    34,   108,
      46,   102,     0,    70,    52,    34,   107,    46,   102,     0,
       0,     0,     0,    28,     0,    29,    49,   114,    50,     0
};

#endif

#if YYDEBUG !=3D 0
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const short yyrline[] =3D
{
       0,    89,    90,    93,    96,    99,   102,   106,   126,   139,
     156,   178,   213,   256,   257,   260,   261,   263,   264,   265,
     268,   269,   270,   271,   274,   275,   278,   279,   282,   283,
     286,   289,   292,   304,   309,   312,   315,   316,   317,   318,
     319,   322,   325,   325,   328,   328,   331,   334,   358,   359,
     362,   363,   366,   367,   370,   371,   390,   391,   394,   395,
     396,   397,   398,   399,   400,   401,   402,   403,   404,   405,
     406,   409,   416,   417,   420,   421,   422,   423,   424,   425,
     428,   429,   430,   431,   432,   433,   436,   437,   438,   439,
     440,   443,   446,   447,   450,   451,   455,   471,   472,   475,
     478,   493,   494,   497,   503,   504,   507,   510,   511,   512,
     513,   516,   517,   520,   523,   526,   532,   545,   558,   587,
     622,   652,   655,   658,   659,   662
};
#endif


#if YYDEBUG !=3D 0 || defined YYERROR_VERBOSE

/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
static const char *const yytname[] =3D
{
  "$", "error", "$undefined.", "UNSIGNED", "TRIGGERTYPE", "ENUM", "LOOKUP=
",=20
  "LIST", "REFERENCE", "CALCULATED", "TRIGGER", "UNIQUE", "INDEX",=20
  "SINGLETON", "CTYPE", "MODULE", "CLASS", "EXTEND", "PUBLIC",=20
  "PROTECTED", "PRIVATE", "FINAL", "ABSTRACT", "NOT", "NUL", "READONLY",=20
  "ORDER", "BY", "DESC", "SYMBOL", "DATATYPE", "STRING", "INTEGER",=20
  "DOUBLE", "':'", "';'", "'{'", "'}'", "','", "'('", "')'", "'*'", "'['"=
,=20
  "']'", "'<'", "'>'", "'=3D'", "'.'", "file", "dt_on", "dt_off", "fp_on"=
,=20
  "fp_off", "push_module", "pop_module", "find_class", "unfind_class",=20
  "push_class", "pop_class", "unit_list", "opt_access", "access",=20
  "opt_class_type", "opt_unique", "opt_unsigned", "qualified_name",=20
  "existing_class_name", "new_container_name", "new_module_name",=20
  "new_class_name", "new_field_name", "existing_field_name", "unit",=20
  "module", "class", "@1", "type", "@2", "extend", "enum", "enum_body",=20
  "opt_parent_list", "parent_list", "class_body", "class_body_item",=20
  "body_item", "index", "index_item_list", "datatype", "opt_format",=20
  "opt_default", "property", "properties", "opt_properties", "new_field",=
=20
  "new_field_list", "readonly", "method", "opt_argument_list", "argument"=
,=20
  "argument_list", "this", "search_fields", "field_list",=20
  "this_field_list", "source_field_list", "lookup_data_source",=20
  "reference_data_source", "list_data_source", "lookup", "list",=20
  "reference", "calculated", "trigger", "optdesc", "orderby", NULL
};
#endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const short yyr1[] =3D
{
       0,    48,    48,    49,    50,    51,    52,    53,    54,    55,
      56,    57,    58,    59,    59,    60,    60,    61,    61,    61,
      62,    62,    62,    62,    63,    63,    64,    64,    65,    65,
      66,    67,    68,    69,    70,    71,    72,    72,    72,    72,
      72,    73,    75,    74,    77,    76,    78,    79,    80,    80,
      81,    81,    82,    82,    83,    83,    84,    84,    85,    85,
      85,    85,    85,    85,    85,    85,    85,    85,    85,    85,
      85,    86,    87,    87,    88,    88,    88,    88,    88,    88,
      89,    89,    89,    89,    89,    89,    90,    90,    90,    90,
      90,    91,    92,    92,    93,    93,    94,    95,    95,    96,
      97,    98,    98,    99,   100,   100,   101,   102,   102,   102,
     102,   103,   103,   104,   105,   106,   107,   108,   109,   110,
     111,   112,   113,   114,   114,   115
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. =
*/
static const short yyr2[] =3D
{
       0,     0,     1,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     1,     2,     0,     1,     1,     1,     1,
       0,     1,     1,     1,     0,     2,     0,     2,     1,     4,
       1,     1,     1,     1,     2,     1,     3,     3,     3,     3,
       4,     9,     0,    13,     0,    13,    10,     5,     1,     3,
       0,     2,     1,     3,     1,     2,     3,     3,     2,     2,
       3,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       4,     3,     1,     3,     2,     2,     1,     2,     3,     4,
       0,     3,     3,     5,     3,     5,     0,     2,     2,     2,
       2,     2,     1,     2,     0,     1,     5,     1,     3,     4,
       7,     0,     1,     3,     1,     3,     2,     4,     3,     2,
       1,     1,     3,     1,     1,     3,     4,     4,     6,     6,
       6,     0,     0,     0,     1,     4
};

/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
   doesn't specify something else to do.  Zero means the default is an
   error. */
static const short yydefact[] =3D
{
      15,    17,    19,    18,    15,    20,    16,    13,    14,     0,
      23,     0,     4,    21,    22,     0,     0,     0,     0,     0,
      31,     0,     0,    32,     7,     0,     4,     4,    36,    37,
      39,    38,     0,    40,     0,    28,    30,     9,     0,     0,
      48,     0,     3,     0,     0,    33,    44,    42,     3,     0,
      15,     0,     3,    11,    11,    47,    49,    15,    29,    15,
      50,    50,     8,     3,     0,     0,     0,     0,   121,   122,
       3,     0,     3,    20,    16,     0,     0,    76,    15,    54,
       0,     0,     0,     0,     0,     3,    27,    28,    75,    69,
       5,     6,    63,     6,    64,     6,    65,    66,    67,    25,
       6,    68,     0,    58,    59,     3,     0,    74,    77,     0,
      10,    55,     3,    80,    97,    61,    62,    52,    51,     3,
       3,    41,    34,     0,     0,     0,     0,     0,    56,     0,
      60,     0,    78,     3,    57,     0,     0,    86,     0,     0,
      15,    15,     0,     0,     0,     0,     3,    70,    35,    72,
       0,    79,    46,     0,     0,     0,     3,     0,    94,    80,
      98,    53,    15,    15,     0,     0,     0,     0,     0,     0,
      99,   123,     0,    71,    84,     0,    81,    82,    26,    90,
      87,    88,    89,     0,    92,    95,     6,    12,    12,     0,
       0,     0,     0,     0,     0,   124,     4,    73,     0,     0,
       0,     0,     0,   104,   102,    91,    93,    96,     3,     3,
     111,   114,     0,    35,     0,   110,     0,   118,   115,   119,
       0,   120,   125,    85,    83,     3,     4,    26,    45,    43,
       0,   117,   106,   113,     0,     0,   109,   116,   103,   100,
     105,   112,   108,     0,   107,     0,     0,     0
};

static const short yydefgoto[] =3D
{
     245,    50,    25,   122,   123,    34,    85,    44,   133,    60,
     208,     4,    73,    74,    15,    75,    76,    77,    37,    21,
      24,    46,    91,   215,     7,    16,    17,    54,    18,    53,
      19,    22,    41,    83,   118,    78,    79,    80,   130,   150,
      81,   137,   158,   184,   185,   186,   114,   115,   101,   116,
     202,   203,   204,   216,   217,   211,   234,   212,   165,   169,
     166,    92,    94,    96,    97,    98,   196,   147
};

static const short yypact[] =3D
{
      28,-32768,-32768,-32768,    31,    89,-32768,-32768,-32768,   -17,
  -32768,     7,-32768,-32768,-32768,    79,     5,    42,    70,    80,
  -32768,    27,    81,-32768,-32768,    92,-32768,-32768,-32768,-32768,
  -32768,-32768,   102,-32768,   105,-32768,   110,-32768,   116,   116,
  -32768,    50,-32768,   114,   119,-32768,-32768,-32768,-32768,   123,
     120,   124,-32768,-32768,-32768,-32768,-32768,    34,-32768,   242,
     122,   122,-32768,-32768,   128,   129,   129,   129,-32768,-32768,
  -32768,   129,-32768,    21,   125,   148,   133,    40,   117,-32768,
     130,   129,    92,   131,   134,-32768,-32768,   135,   110,-32768,
  -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  -32768,-32768,   142,-32768,-32768,-32768,   137,-32768,-32768,    12,
  -32768,-32768,-32768,    36,-32768,   136,-32768,-32768,   149,-32768,
  -32768,-32768,-32768,   139,   154,   156,   157,   166,-32768,   167,
  -32768,   155,-32768,-32768,-32768,   118,   158,   160,   129,    92,
     242,   242,    92,    92,    92,   167,-32768,-32768,-32768,-32768,
      58,-32768,-32768,   162,    24,   163,-32768,   101,   178,   165,
  -32768,-32768,   174,   209,    45,   176,   177,   179,    51,   180,
  -32768,   185,   167,-32768,-32768,    76,-32768,-32768,    30,-32768,
  -32768,-32768,-32768,   199,-32768,   178,-32768,-32768,-32768,    92,
      -2,    92,    -2,    92,    -2,-32768,-32768,-32768,   186,   187,
      92,   201,   193,-32768,   198,-32768,-32768,-32768,-32768,-32768,
     110,   202,   197,   194,    92,-32768,    39,-32768,   110,-32768,
     203,-32768,-32768,-32768,-32768,-32768,-32768,    16,-32768,-32768,
      92,-32768,-32768,   202,   204,    92,-32768,-32768,-32768,-32768,
  -32768,   110,-32768,   215,-32768,   256,   257,-32768
};

static const short yypgoto[] =3D
{
  -32768,   -47,   -24,-32768,   -89,-32768,-32768,-32768,-32768,   188,
      71,   208,    10,    26,-32768,-32768,-32768,   -25,   -73,-32768,
  -32768,   224,   -49,  -116,     4,-32768,   191,-32768,   192,-32768,
  -32768,   205,-32768,   212,-32768,   -28,   -71,-32768,-32768,-32768,
    -163,-32768,-32768,    85,-32768,-32768,   138,-32768,-32768,-32768,
  -32768,    47,-32768,-32768,   -91,  -194,    43,    73,-32768,-32768,
     132,-32768,-32768,-32768,-32768,-32768,-32768,-32768
};


#define=09YYLAST=09=09278


static const short yytable[] =3D
{
      36,    55,    38,    39,   124,    59,   125,   111,     8,   117,
       5,   126,    20,   149,     5,   201,    86,    93,    95,    63,
     233,   200,   100,    99,   136,   102,     6,   213,    -1,   170,
       6,    -2,   113,    63,    10,   200,    23,   214,   121,    88,
      28,   233,    13,    14,   131,    35,     1,     2,     3,     1,
       2,     3,     1,     2,     3,   132,   197,    36,   128,    35,
       5,     8,   175,    32,   201,   134,   161,     5,   148,   176,
    -101,    62,   140,   141,    43,    -6,     6,    29,   235,    43,
     135,   108,   109,     6,   189,    43,   152,    48,    49,   159,
     193,   111,   111,    26,     9,    27,   172,   207,   173,   171,
     236,   219,    10,   221,    11,    30,    12,   198,   199,   178,
      13,    14,   162,   163,    36,    31,    33,   164,   164,   168,
      63,    35,    64,    65,    66,    67,    68,    69,    70,   -24,
     179,    40,   180,   181,   182,     1,     2,     3,     1,     2,
       3,    42,    71,    72,    43,    45,    35,   -26,    51,   153,
     154,   155,    56,    58,   110,    52,    82,    87,    90,   105,
     106,   228,   229,   107,   210,   112,   218,   119,   210,   127,
     120,   -31,   222,   142,   138,    88,   129,    63,   238,    64,
      65,    66,    67,    68,    69,    70,   -24,   139,   143,   210,
     144,   145,     1,     2,     3,   146,   148,   156,   151,    71,
      72,   183,   239,    35,   -26,   241,   157,   174,   177,   135,
     210,   187,    63,   195,    64,    65,    66,    67,    68,    69,
      70,   -24,   190,   205,   191,   192,   194,     1,     2,     3,
     225,   223,   224,   226,    71,    72,   227,   231,    35,   -26,
     230,   232,    61,   237,   242,    63,   188,    64,    65,    66,
      67,    68,    69,    70,   -24,   244,   246,   247,    57,   209,
       1,     2,     3,    47,   103,   104,   220,    71,    72,    89,
     206,    35,   -26,    84,   240,   167,   160,     0,   243
};

static const short yycheck[] =3D
{
      25,    48,    26,    27,    93,    52,    95,    78,     4,    82,
       0,   100,    29,   129,     4,   178,    63,    66,    67,     3,
     214,     5,    71,    70,   113,    72,     0,    29,     0,   145,
       4,     0,    81,     3,    13,     5,    29,    39,    85,    64,
      35,   235,    21,    22,    32,    29,    18,    19,    20,    18,
      19,    20,    18,    19,    20,    43,   172,    82,   105,    29,
      50,    57,    38,    36,   227,   112,   139,    57,    29,    45,
      40,    37,   119,   120,    34,    39,    50,    35,    39,    34,
      44,    41,    42,    57,    39,    34,   133,    37,    38,   138,
      39,   162,   163,    14,     5,    16,    38,   186,    40,   146,
     216,   192,    13,   194,    15,    35,    17,    31,    32,   156,
      21,    22,   140,   141,   139,    35,    35,   142,   143,   144,
       3,    29,     5,     6,     7,     8,     9,    10,    11,    12,
      29,    29,    31,    32,    33,    18,    19,    20,    18,    19,
      20,    36,    25,    26,    34,    29,    29,    30,    34,    31,
      32,    33,    29,    29,    37,    36,    34,    29,    29,    34,
      12,   208,   209,    30,   189,    35,   191,    36,   193,    27,
      36,    36,   196,    34,    38,   200,    39,     3,   225,     5,
       6,     7,     8,     9,    10,    11,    12,    38,    34,   214,
      34,    34,    18,    19,    20,    29,    29,    39,    43,    25,
      26,    23,   226,    29,    30,   230,    46,    45,    45,    44,
     235,    37,     3,    28,     5,     6,     7,     8,     9,    10,
      11,    12,    46,    24,    47,    46,    46,    18,    19,    20,
      29,    45,    45,    40,    25,    26,    38,    40,    29,    30,
      38,    47,    54,    40,    40,     3,    37,     5,     6,     7,
       8,     9,    10,    11,    12,    40,     0,     0,    50,   188,
      18,    19,    20,    39,    73,    73,   193,    25,    26,    64,
     185,    29,    30,    61,   227,   143,   138,    -1,   235
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "/usr/share/bison/bison.simple"

/* Skeleton output parser for bison,
   Copyright 1984, 1989, 1990, 2000, 2001 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., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* This is the parser code that is written into each bison parser when
   the %semantic_parser declaration is not specified in the grammar.
   It was written by Richard Stallman by simplifying the hairy parser
   used when %semantic_parser is specified.  */

#ifndef YYSTACK_USE_ALLOCA
# ifdef alloca
#  define YYSTACK_USE_ALLOCA 1
# else /* alloca not defined */
#  ifdef __GNUC__
#   define YYSTACK_USE_ALLOCA 1
#   define alloca __builtin_alloca
#  else /* not GNU C.  */
#   if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) ||=
 defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i=
386))
#    define YYSTACK_USE_ALLOCA 1
#    include <alloca.h>
#   else /* not sparc */
     /* We think this test detects Watcom and Microsoft C.  */
     /* This used to test MSDOS, but that is a bad idea since that
=09symbol is in the user namespace.  */
#    if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
#     if 0
       /* No need for malloc.h, which pollutes the namespace; instead,
=09  just don't use alloca.  */
#      include <malloc.h>
#     endif
#    else /* not MSDOS, or __TURBOC__ */
#     if defined(_AIX)
       /* I don't know what this was needed for, but it pollutes the
=09  namespace.  So I turned it off.  rms, 2 May 1997.  */
       /* #include <malloc.h>  */
 #pragma alloca
#      define YYSTACK_USE_ALLOCA 1
#     else /* not MSDOS, or __TURBOC__, or _AIX */
#      if 0
=09/* haible@ilog.fr says this works for HPUX 9.05 and up, and on
=09   HPUX 10.  Eventually we can turn this on.  */
#       ifdef __hpux
#        define YYSTACK_USE_ALLOCA 1
#        define alloca __builtin_alloca
#  =09endif /* __hpux */
#      endif
#     endif /* not _AIX */
#    endif /* not MSDOS, or __TURBOC__ */
#   endif /* not sparc */
#  endif /* not GNU C */
# endif /* alloca not defined */
#endif /* YYSTACK_USE_ALLOCA not defined */

#ifndef YYSTACK_USE_ALLOCA
# define YYSTACK_USE_ALLOCA 0
#endif

#if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
#else
# define YYSTACK_ALLOC malloc
#endif

#define yyerrok=09=09(yyerrstatus =3D 0)
#define yyclearin=09(yychar =3D YYEMPTY)
#define YYEMPTY=09=09-2
#define YYEOF=09=090
#define YYACCEPT=09goto yyacceptlab
#define YYABORT =09goto yyabortlab
#define YYERROR=09=09goto yyerrlab1
/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL=09=09goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(Token, Value)=09=09=09=09=09\
do=09=09=09=09=09=09=09=09\
  if (yychar =3D=3D YYEMPTY && yylen =3D=3D 1)=09=09=09=09\
    {=09=09=09=09=09=09=09=09\
      yychar =3D (Token);=09=09=09=09=09=09\
      yylval =3D (Value);=09=09=09=09=09=09\
      yychar1 =3D YYTRANSLATE (yychar);=09=09=09=09\
      YYPOPSTACK;=09=09=09=09=09=09\
      goto yybackup;=09=09=09=09=09=09\
    }=09=09=09=09=09=09=09=09\
  else=09=09=09=09=09=09=09=09\
    { =09=09=09=09=09=09=09=09\
      yyerror ("syntax error: cannot back up");=09=09=09\
      YYERROR;=09=09=09=09=09=09=09\
    }=09=09=09=09=09=09=09=09\
while (0)

#define YYTERROR=091
#define YYERRCODE=09256


/* YYLLOC_DEFAULT -- Compute the default location (before the actions
   are run).

   When YYLLOC_DEFAULT is run, CURRENT is set the location of the
   first token.  By default, to implement support for ranges, extend
   its range to the last symbol.  */

#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)       =09\
   Current.last_line   =3D Rhs[N].last_line;=09\
   Current.last_column =3D Rhs[N].last_column;
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */

#if YYPURE
# if YYLSP_NEEDED
#  ifdef YYLEX_PARAM
#   define YYLEX=09=09yylex (&yylval, &yylloc, YYLEX_PARAM)
#  else
#   define YYLEX=09=09yylex (&yylval, &yylloc)
#  endif
# else /* !YYLSP_NEEDED */
#  ifdef YYLEX_PARAM
#   define YYLEX=09=09yylex (&yylval, YYLEX_PARAM)
#  else
#   define YYLEX=09=09yylex (&yylval)
#  endif
# endif /* !YYLSP_NEEDED */
#else /* !YYPURE */
# define YYLEX=09=09=09yylex ()
#endif /* !YYPURE */


/* Enable debugging if requested.  */
#if YYDEBUG
# define YYDPRINTF(Args)=09=09=09\
do {=09=09=09=09=09=09\
  if (yydebug)=09=09=09=09=09\
    fprintf Args;=09=09=09=09\
} while (0)
/* Nonzero means print parse trace. [The following comment makes no
   sense to me.  Could someone clarify it?  --akim] Since this is
   uninitialized, it does not stop multiple parsers from coexisting.
   */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
#endif /* !YYDEBUG */

/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef=09YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).  */
#if YYMAXDEPTH =3D=3D 0
# undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif
=0C
/* Define __yy_memcpy.  Note that the size argument
   should be passed with type unsigned int, because that is what the non-=
GCC
   definitions require.  With GCC, __builtin_memcpy takes an arg
   of type size_t, but it can handle unsigned int.  */

#if __GNUC__ > 1=09=09/* GNU C and GNU C++ define this.  */
# define __yy_memcpy(To, From, Count)=09__builtin_memcpy (To, From, Count=
)
#else=09=09=09=09/* not GNU C or C++ */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
# ifndef __cplusplus
__yy_memcpy (to, from, count)
     char *to;
     const char *from;
     unsigned int count;
# else /* __cplusplus */
__yy_memcpy (char *to, const char *from, unsigned int count)
# endif
{
  register const char *f =3D from;
  register char *t =3D to;
  register int i =3D count;

  while (i-- > 0)
    *t++ =3D *f++;
}

#endif
=0C
#line 216 "/usr/share/bison/bison.simple"


/* The user can define YYPARSE_PARAM as the name of an argument to be pas=
sed
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */

#ifdef YYPARSE_PARAM
# ifdef __cplusplus
#  define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#  define YYPARSE_PARAM_DECL
# else /* !__cplusplus */
#  define YYPARSE_PARAM_ARG YYPARSE_PARAM
#  define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
# endif /* !__cplusplus */
#else /* !YYPARSE_PARAM */
# define YYPARSE_PARAM_ARG
# define YYPARSE_PARAM_DECL
#endif /* !YYPARSE_PARAM */

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
# ifdef YYPARSE_PARAM
int yyparse (void *);
# else
int yyparse (void);
# endif
#endif

/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
   variables are global, or local to YYPARSE.  */

#define _YY_DECL_VARIABLES=09=09=09=09\
/* The lookahead symbol.  */=09=09=09=09\
int yychar;=09=09=09=09=09=09\
=09=09=09=09=09=09=09\
/* The semantic value of the lookahead symbol. */=09\
YYSTYPE yylval;=09=09=09=09=09=09\
=09=09=09=09=09=09=09\
/* Number of parse errors so far.  */=09=09=09\
int yynerrs;

#if YYLSP_NEEDED
# define YY_DECL_VARIABLES=09=09=09\
_YY_DECL_VARIABLES=09=09=09=09\
=09=09=09=09=09=09\
/* Location data for the lookahead symbol.  */=09\
YYLTYPE yylloc;
#else
# define YY_DECL_VARIABLES=09=09=09\
_YY_DECL_VARIABLES
#endif


/* If nonreentrant, generate the variables here. */

#if !YYPURE
YY_DECL_VARIABLES
#endif  /* !YYPURE */

int
yyparse (YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
{
  /* If reentrant, generate the variables here. */
#if YYPURE
  YY_DECL_VARIABLES
#endif  /* !YYPURE */

  register int yystate;
  register int yyn;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
  int yychar1 =3D 0;

  /* Three stacks and their tools:
     `yyss': related to states,
     `yysv': related to semantic values,
     `yyls': related to locations.

     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */

  /* The state stack. */
  short=09yyssa[YYINITDEPTH];
  short *yyss =3D yyssa;
  register short *yyssp;

  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs =3D yyvsa;
  register YYSTYPE *yyvsp;

#if YYLSP_NEEDED
  /* The location stack.  */
  YYLTYPE yylsa[YYINITDEPTH];
  YYLTYPE *yyls =3D yylsa;
  YYLTYPE *yylsp;
#endif

#if YYLSP_NEEDED
# define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
# define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  int yystacksize =3D YYINITDEPTH;
  int yyfree_stacks =3D 0;


  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;
# if YYLSP_NEEDED
  YYLTYPE yyloc;
# endif

  /* When reducing, the number of symbols on the RHS of the reduced
     rule. */
  int yylen;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate =3D 0;
  yyerrstatus =3D 0;
  yynerrs =3D 0;
  yychar =3D YYEMPTY;=09=09/* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp =3D yyss;
  yyvsp =3D yyvs;
#if YYLSP_NEEDED
  yylsp =3D yyls;
#endif
  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed. so pushing a state here evens the stacks.
     */
  yyssp++;

 yysetstate:
  *yyssp =3D yystate;

  if (yyssp >=3D yyss + yystacksize - 1)
    {
      /* Give user a chance to reallocate the stack. Use copies of
=09 these so that the &'s don't force the real ones into memory.
=09 */
      YYSTYPE *yyvs1 =3D yyvs;
      short *yyss1 =3D yyss;
#if YYLSP_NEEDED
      YYLTYPE *yyls1 =3D yyls;
#endif

      /* Get the current used size of the three stacks, in elements.  */
      int size =3D yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of the
=09 data in use in that stack, in bytes.  */
# if YYLSP_NEEDED
      /* This used to be a conditional around just the two extra args,
=09 but that might be undefined if yyoverflow is a macro.  */
      yyoverflow ("parser stack overflow",
=09=09  &yyss1, size * sizeof (*yyssp),
=09=09  &yyvs1, size * sizeof (*yyvsp),
=09=09  &yyls1, size * sizeof (*yylsp),
=09=09  &yystacksize);
# else
      yyoverflow ("parser stack overflow",
=09=09  &yyss1, size * sizeof (*yyssp),
=09=09  &yyvs1, size * sizeof (*yyvsp),
=09=09  &yystacksize);
# endif

      yyss =3D yyss1; yyvs =3D yyvs1;
# if YYLSP_NEEDED
      yyls =3D yyls1;
# endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >=3D YYMAXDEPTH)
=09{
=09  yyerror ("parser stack overflow");
=09  if (yyfree_stacks)
=09    {
=09      free (yyss);
=09      free (yyvs);
# if YYLSP_NEEDED
=09      free (yyls);
# endif
=09    }
=09  return 2;
=09}
      yystacksize *=3D 2;
      if (yystacksize > YYMAXDEPTH)
=09yystacksize =3D YYMAXDEPTH;
# if !YYSTACK_USE_ALLOCA
      yyfree_stacks =3D 1;
# endif
      yyss =3D (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss, (char *)yyss1,
=09=09   size * (unsigned int) sizeof (*yyssp));
      yyvs =3D (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs, (char *)yyvs1,
=09=09   size * (unsigned int) sizeof (*yyvsp));
# if YYLSP_NEEDED
      yyls =3D (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls, (char *)yyls1,
=09=09   size * (unsigned int) sizeof (*yylsp));
# endif
#endif /* no yyoverflow */

      yyssp =3D yyss + size - 1;
      yyvsp =3D yyvs + size - 1;
#if YYLSP_NEEDED
      yylsp =3D yyls + size - 1;
#endif

      YYDPRINTF ((stderr, "Stack size increased to %d\n", yystacksize));

      if (yyssp >=3D yyss + yystacksize - 1)
=09YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  goto yybackup;


/*-----------.
| yybackup.  |
`-----------*/
yybackup:

/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.=
  */

  yyn =3D yypact[yystate];
  if (yyn =3D=3D YYFLAG)
    goto yydefault;

  /* Not known =3D> get a lookahead token if don't already have one.  */

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (yychar =3D=3D YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar =3D YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with=
 */

  if (yychar <=3D 0)=09=09/* This means end of input. */
    {
      yychar1 =3D 0;
      yychar =3D YYEOF;=09=09/* Don't call YYLEX any more */

      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yychar1 =3D YYTRANSLATE (yychar);

#if YYDEBUG
     /* We have to keep this `#if YYDEBUG', since we use variables
=09which are defined only if `YYDEBUG' is set.  */
      if (yydebug)
=09{
=09  fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
=09  /* Give the individual parser a way to print the precise
=09     meaning of a token, for further debugging info.  */
# ifdef YYPRINT
=09  YYPRINT (stderr, yychar, yylval);
# endif
=09  fprintf (stderr, ")\n");
=09}
#endif
    }

  yyn +=3D yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] !=3D yychar1)
    goto yydefault;

  yyn =3D yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative =3D> reduce, -yyn is rule number.
     Positive =3D> shift, yyn is new state.
       New state is final state =3D> don't bother to shift,
       just return success.
     0, or most negative number =3D> error.  */

  if (yyn < 0)
    {
      if (yyn =3D=3D YYFLAG)
=09goto yyerrlab;
      yyn =3D -yyn;
      goto yyreduce;
    }
  else if (yyn =3D=3D 0)
    goto yyerrlab;

  if (yyn =3D=3D YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */
  YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1=
]));

  /* Discard the token being shifted unless it is eof.  */
  if (yychar !=3D YYEOF)
    yychar =3D YYEMPTY;

  *++yyvsp =3D yylval;
#if YYLSP_NEEDED
  *++yylsp =3D yylloc;
#endif

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  yystate =3D yyn;
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn =3D yydefact[yystate];
  if (yyn =3D=3D 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen =3D yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ =3D $1'.

     Otherwise, the following line sets YYVAL to the semantic value of
     the lookahead token.  This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval =3D yyvsp[1-yylen];

#if YYLSP_NEEDED
  /* Similarly for the default location.  Let the user run additional
     commands if for instance locations are ranges.  */
  yyloc =3D yylsp[1-yylen];
  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
#endif

#if YYDEBUG
  /* We have to keep this `#if YYDEBUG', since we use variables which
     are defined only if `YYDEBUG' is set.  */
  if (yydebug)
    {
      int i;

      fprintf (stderr, "Reducing via rule %d (line %d), ",
=09       yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (i =3D yyprhs[yyn]; yyrhs[i] > 0; i++)
=09fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif

  switch (yyn) {

case 1:
#line 89 "yparser.y"
{ yywarn("File is empty"); ;
    break;}
case 3:
#line 93 "yparser.y"
{ expecting_datatype=3D1; /*printf("on\n");*/ ;
    break;}
case 4:
#line 96 "yparser.y"
{ expecting_datatype=3D0; /*printf("off\n");*/ ;
    break;}
case 5:
#line 99 "yparser.y"
{ expecting_fieldprop=3D1; /* printf("fld prop on\n"); */ ;
    break;}
case 6:
#line 102 "yparser.y"
{ expecting_fieldprop=3D0; /* printf("fld prop off\n");*/ ;
    break;}
case 7:
#line 106 "yparser.y"
{
                       if( current_pass =3D=3D 1 ) {
                         odl_module *newone =3D
                             odl_new_module(yyvsp[-2].uint,yyvsp[0].strin=
g);
                         newone->filename =3D g_strdup( yyget_current_fil=
ename() );
                         odl_container_insert_container( yycurrent_contai=
ner ,
                                                  (odl_container *)newone=
 );
                         newone->base.parent =3D (odl_base *)yycurrent_co=
ntainer;
                         newone->base.access =3D current_access;
                         yycurrent_container =3D newone;
                         /* doindent(); printf( "push module\n" ); indent=
+=3D4; */
                       }
                       else {
                           yycurrent_container =3D (odl_container *)
                               odl_find_in_container( (odl_base *)yycurre=
nt_container,
                               yyvsp[0].string);
                       }
                     ;
    break;}
case 8:
#line 126 "yparser.y"
{
                       if( current_pass =3D=3D 1 ) {
                         /* printf( "pop_module:\n"); */
                         yycurrent_container =3D (odl_container *)
                             odl_container_get_parent(yycurrent_container=
);
                         /* indent-=3D4; doindent(); printf( "pop module\=
n" ); */
                       }
                       else {
                           yycurrent_container =3D (odl_container *)yycur=
rent_container->base.parent;
                       }
                     ;
    break;}
case 9:
#line 139 "yparser.y"
{
                       odl_class * found_class =3D NULL;
                       found_class =3D odl_find_class ( yycurrenttree, yy=
vsp[0].string, NULL);
                                /* TODO fix extend must use fully qualifi=
ed name */
                                /* odl_make_fullname_base( yycurrent_cont=
ainer, $<string>0)); */
                       if ( found_class !=3D NULL)
                         {
                           beforefind =3D yycurrent_container;
                           yycurrent_container =3D found_class;
                         }
                       else
                         {
                           yyerror("Could not find class.");
                         }
                     ;
    break;}
case 10:
#line 156 "yparser.y"
{
                       if( current_pass =3D=3D 1 )
                         {
                           odl_class *c =3D NULL;
                           c =3D (odl_class *) yycurrent_container;
                           /* add stuff to class */
                           if (yyvsp[-1].list)
                             {
                               if (c->contents)
                                 {
                                   c->contents =3D g_list_concat (c->cont=
ents, yyvsp[-1].list);
                                 }
                               else
                                 {
                                   c->contents =3D yyvsp[-1].list;
                                 }
                             }
                         }
                       yycurrent_container =3D beforefind;
                     ;
    break;}
case 11:
#line 178 "yparser.y"
{
                       if( current_pass =3D=3D 1 )
                         {
                           odl_class *newone =3D NULL;
                           char * fullname =3D NULL;
                           odl_class *check_class =3D NULL;
                           /* printf( "push_class name: %s\n", $<list>-0)=
; */
                           newone =3D odl_new_class(yyvsp[-4].uint, yyvsp=
[0].string, is_a_type);
                           g_assert( newone );
                           newone->base.parent =3D (odl_base *)yycurrent_=
container;
                           newone->base.access =3D current_access;
                           newone->filename =3D g_strdup( yyget_current_f=
ilename() );
                           /* try to find a class with the same name   */
                           fullname =3D odl_make_fullname_base( (odl_base=
*) newone );
=09=09=09   g_message (fullname);
                           check_class =3D odl_find_class(yycurrenttree, =
fullname, NULL);
                           if (check_class !=3D NULL)
                             {
                               yyerror( "Duplicate class name found." );
                             }
                           /* continue with creating class */
                           odl_container_insert_container( yycurrent_cont=
ainer ,
                                                         (odl_container *=
)newone );
                           yycurrent_container =3D newone;
                          /* doindent(); printf( "push class\n" ); indent=
 +=3D 4; */
                         }
                       else
                         {
                           yycurrent_container =3D (odl_container *)
                               odl_find_in_container( (odl_base *)yycurre=
nt_container,
                               yyvsp[0].string);
                         }
                     ;
    break;}
case 12:
#line 213 "yparser.y"
{
                        /* GList *l; */
                        odl_class *c =3D NULL;
                        if (current_pass =3D=3D 1)
                          {
                                        /*
                                        odl_container * tmp;
                                        tmp =3D (odl_container *) yycurre=
nt_container;
                                        printf( "pop_class current name: =
%s\n", tmp->base.name);
                                        */
                            c =3D (odl_class *) yycurrent_container;
                            yycurrent_container =3D (odl_container *)
                              odl_container_get_parent (yycurrent_contain=
er);
                                        /*
                                        tmp =3D (odl_container *) yycurre=
nt_container;
                                        printf( "pop_class new name: %s\n=
", tmp->base.fullname);
                                        */
                                        /* indent-=3D4; doindent(); print=
f( "pop class\n" ); */
                                        /* add all the class's info to yy=
current_container */
                                        /* add fields in the class (any s=
ubclasses already added) */
                            if (yyvsp[-1].list)
                              {
                                if (c->contents)
                                  {
                                    c->contents =3D g_list_concat (c->con=
tents, yyvsp[-1].list);
                                  }
                                else
                                  {
                                    c->contents =3D yyvsp[-1].list;
                                  }
                              }
                            /* add parents */
                            c->parents =3D yyvsp[-4].list;
                          }
                        else
                          {                           /* current_pass =3D=
=3D 2 */
                            odl_standardise_parents ((odl_class *) yycurr=
ent_container);
                            yycurrent_container =3D
                              (odl_container *) yycurrent_container->base=
=2Eparent;
                          }
                      ;
    break;}
case 15:
#line 260 "yparser.y"
{ yyval.uint =3D ODL_ACCESS_DEFAULT; current_access =3D ODL_ACCESS_DEFAUL=
T; ;
    break;}
case 16:
#line 261 "yparser.y"
{ yyval.uint =3D yyvsp[0].uint; current_access =3D yyvsp[0].uint; ;
    break;}
case 17:
#line 263 "yparser.y"
{ yyval.uint =3D ODL_ACCESS_PUBLIC;    current_access =3D yyval.uint; ;
    break;}
case 18:
#line 264 "yparser.y"
{ yyval.uint =3D ODL_ACCESS_PRIVATE;   current_access =3D yyval.uint; ;
    break;}
case 19:
#line 265 "yparser.y"
{ yyval.uint =3D ODL_ACCESS_PROTECTED; current_access =3D yyval.uint; ;
    break;}
case 20:
#line 268 "yparser.y"
{ yyval.uint =3D ODL_CLASSTYPE_NORMAL;    ;
    break;}
case 21:
#line 269 "yparser.y"
{ yyval.uint =3D ODL_CLASSTYPE_FINAL;     ;
    break;}
case 22:
#line 270 "yparser.y"
{ yyval.uint =3D ODL_CLASSTYPE_ABSTRACT;  ;
    break;}
case 23:
#line 271 "yparser.y"
{ yyval.uint =3D ODL_CLASSTYPE_SINGLETON; ;
    break;}
case 24:
#line 274 "yparser.y"
{ yyval.bool_value =3D FALSE; ;
    break;}
case 25:
#line 275 "yparser.y"
{ yyval.bool_value =3D TRUE;  ;
    break;}
case 26:
#line 278 "yparser.y"
{ yyval.bool_value =3D FALSE; ;
    break;}
case 27:
#line 279 "yparser.y"
{ yyval.bool_value =3D TRUE;  ;
    break;}
case 28:
#line 282 "yparser.y"
{ yyval.string =3D yyvsp[0].string; ;
    break;}
case 29:
#line 283 "yparser.y"
{ yyval.string =3D g_strdup_printf("%s::%s",yyvsp[-3].string,yyvsp[0].str=
ing); g_free(yyvsp[-3].string); g_free(yyvsp[0].string); ;
    break;}
case 30:
#line 286 "yparser.y"
{ yyval.string =3D yyvsp[0].string; ;
    break;}
case 31:
#line 289 "yparser.y"
{ yyval.string =3D yyvsp[0].string; /*printf("[ (%s)\n",$1);*/ ;
    break;}
case 32:
#line 292 "yparser.y"
{
                            odl_module * wanted =3D NULL;
                            wanted =3D odl_find_module( yycurrenttree, yy=
vsp[0].string, 0);
                            /* printf("Looking for Module: %s, %p\n", $1,=
 wanted); */
                            yyval.string =3D yyvsp[0].string;
                            if ((wanted !=3D NULL) && (current_pass =3D=3D=
 1))
                              {
                                yyerror("Duplicate module name.");
                              }
                          ;
    break;}
case 33:
#line 304 "yparser.y"
{ /*printf("[ (%s)\n",$1);*/=20
                            yyval.string =3D yyvsp[0].string;
                          ;
    break;}
case 34:
#line 309 "yparser.y"
{ yyval.string =3D yyvsp[-1].string; ;
    break;}
case 35:
#line 312 "yparser.y"
{ yyval.string =3D yyvsp[0].string; ;
    break;}
case 36:
#line 315 "yparser.y"
{;
    break;}
case 37:
#line 316 "yparser.y"
{;
    break;}
case 38:
#line 317 "yparser.y"
{;
    break;}
case 39:
#line 318 "yparser.y"
{;
    break;}
case 40:
#line 319 "yparser.y"
{;
    break;}
case 42:
#line 325 "yparser.y"
{ is_a_type =3D FALSE; ;
    break;}
case 43:
#line 325 "yparser.y"
{;
    break;}
case 44:
#line 328 "yparser.y"
{ is_a_type =3D TRUE; ;
    break;}
case 45:
#line 328 "yparser.y"
{;
    break;}
case 46:
#line 331 "yparser.y"
{;
    break;}
case 47:
#line 334 "yparser.y"
{
                       if( current_pass =3D=3D 1 )
                       {
                           odl_item *e =3D odl_new_enum( current_access ,=
 yyvsp[-4].string );
                           if( e )
                           {
                               GList *l;
                               e->base.parent =3D (odl_base *)yycurrent_c=
ontainer;
                               l =3D yyvsp[-2].list;
                               while( l )
                               {
                                   odl_enum_add_element( e , l->data );
                                   l =3D g_list_next( l );
                               }

                               yycurrent_container->contents =3D
                               g_list_append( yycurrent_container->conten=
ts,
                                 e );
                           }
                       }
                       odl_namelist_free( yyvsp[-2].list );
                   ;
    break;}
case 48:
#line 358 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].string); ;
    break;}
case 49:
#line 359 "yparser.y"
{ yyval.list =3D g_list_append(yyvsp[-2].list,yyvsp[0].string);   ;
    break;}
case 50:
#line 362 "yparser.y"
{ yyval.list =3D NULL; ;
    break;}
case 51:
#line 363 "yparser.y"
{ yyval.list =3D yyvsp[0].list;   ;
    break;}
case 52:
#line 366 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].string); ;
    break;}
case 53:
#line 367 "yparser.y"
{ yyval.list =3D g_list_append(yyvsp[-2].list,yyvsp[0].string); ;
    break;}
case 54:
#line 370 "yparser.y"
{ yyval.list =3D yyvsp[0].list; ;
    break;}
case 55:
#line 371 "yparser.y"
{
                                          /* if 2 lists, concat them,
                                             otherwise pass both on
                                             otherwise an empty class */
                                          if( yyvsp[-1].list && yyvsp[0].=
list ) {
                                             yyval.list =3D g_list_concat=
(yyvsp[-1].list,yyvsp[0].list);
                                          }
                                          else if( yyvsp[-1].list !=3D NU=
LL ) {
                                             yyval.list =3D yyvsp[-1].lis=
t;
                                          }
                                          else if( yyvsp[0].list !=3D NUL=
L ) {
                                             yyval.list =3D yyvsp[0].list=
;
                                          }
                                          else {
                                             yyval.list =3D yyvsp[-1].lis=
t;
                                          }
                                       ;
    break;}
case 56:
#line 390 "yparser.y"
{ current_access =3D yyvsp[-2].uint; yyval.list =3D NULL; ;
    break;}
case 57:
#line 391 "yparser.y"
{ yyval.list =3D yyvsp[-2].list; ;
    break;}
case 58:
#line 394 "yparser.y"
{ yyval.list =3D NULL; /* already handled */ ;
    break;}
case 59:
#line 395 "yparser.y"
{ yyval.list =3D NULL; /* already handled */ ;
    break;}
case 60:
#line 396 "yparser.y"
{ yyval.list =3D NULL; /* already handled */ ;
    break;}
case 61:
#line 397 "yparser.y"
{ yyval.list =3D odl_reprocess_fields(yyvsp[-1].datatype,yyvsp[0].list); =
;
    break;}
case 62:
#line 398 "yparser.y"
{ yyval.list =3D g_list_append(NULL,set_method_datatype(yyvsp[-1].datatyp=
e,yyvsp[0].item));  ;
    break;}
case 63:
#line 399 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].item); ;
    break;}
case 64:
#line 400 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].item); ;
    break;}
case 65:
#line 401 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].item); ;
    break;}
case 66:
#line 402 "yparser.y"
{ yyval.list =3D NULL; /* TODO */ ;
    break;}
case 67:
#line 403 "yparser.y"
{ yyval.list =3D NULL; /* TODO */ ;
    break;}
case 68:
#line 404 "yparser.y"
{ yyval.list =3D NULL; /* TODO */ ;
    break;}
case 69:
#line 405 "yparser.y"
{ yyval.list =3D NULL; /* already handled */ ;
    break;}
case 70:
#line 406 "yparser.y"
{ yyval.list =3D NULL; /* already handled */ ;
    break;}
case 71:
#line 409 "yparser.y"
{ if(current_pass =3D=3D 2)
                                     odl_make_index(yycurrent_container,y=
yvsp[-4].bool_value,yyvsp[-1].list);
                                 else
                                     odl_namelist_free(yyvsp[-1].list);
                               ;
    break;}
case 72:
#line 416 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].string); ;
    break;}
case 73:
#line 417 "yparser.y"
{ yyval.list =3D g_list_append(yyvsp[-2].list,yyvsp[0].string); ;
    break;}
case 74:
#line 420 "yparser.y"
{ yyval.datatype =3D alloc_odl_datatype(yyvsp[-1].bool_value,yyvsp[0].str=
ing,-1,odl_datatype_id(yyvsp[0].string)); ;
    break;}
case 75:
#line 421 "yparser.y"
{ yyval.datatype =3D alloc_odl_datatype(FALSE,yyvsp[0].string,-1,DT_enum)=
; ;
    break;}
case 76:
#line 422 "yparser.y"
{ yyval.datatype =3D alloc_odl_datatype(FALSE,yyvsp[0].string,-1,DT_type)=
; ;
    break;}
case 77:
#line 423 "yparser.y"
{ yyval.datatype =3D alloc_odl_datatype(FALSE,yyvsp[-1].string,-1,DT_clas=
s); ;
    break;}
case 78:
#line 424 "yparser.y"
{ yyval.datatype =3D alloc_odl_datatype(FALSE,yyvsp[-2].string,0,DT_class=
); ;
    break;}
case 79:
#line 425 "yparser.y"
{ yyval.datatype =3D alloc_odl_datatype(FALSE,yyvsp[-3].string,yyvsp[-1].=
integer,DT_class); yyerror("Bounded lists are not yet supported."); ;
    break;}
case 80:
#line 428 "yparser.y"
{ yyval.string =3D NULL; ;
    break;}
case 81:
#line 429 "yparser.y"
{ yyval.string =3D g_strdup_printf("%ld",yyvsp[-1].integer); ;
    break;}
case 82:
#line 430 "yparser.y"
{ yyval.string =3D g_strdup_printf("%f",yyvsp[-1].floating); ;
    break;}
case 83:
#line 431 "yparser.y"
{ yyval.string =3D g_strdup_printf("%ld,%ld",yyvsp[-3].integer,yyvsp[-1].=
integer); ;
    break;}
case 84:
#line 432 "yparser.y"
{ yyval.string =3D yyvsp[-1].string; ;
    break;}
case 85:
#line 433 "yparser.y"
{ yyval.string =3D g_strdup_printf("%ld,%s",yyvsp[-3].integer,yyvsp[-1].s=
tring); g_free(yyvsp[-1].string); ;
    break;}
case 86:
#line 436 "yparser.y"
{ yyval.string =3D NULL; ;
    break;}
case 87:
#line 437 "yparser.y"
{ yyval.string =3D yyvsp[0].string;   ;
    break;}
case 88:
#line 438 "yparser.y"
{ yyval.string =3D g_strdup_printf("%ld",yyvsp[0].integer); ;
    break;}
case 89:
#line 439 "yparser.y"
{ yyval.string =3D g_strdup_printf("%f",yyvsp[0].floating); ;
    break;}
case 90:
#line 440 "yparser.y"
{ yyval.string =3D yyvsp[0].string; ;
    break;}
case 91:
#line 443 "yparser.y"
{ yyval.uint =3D ODL_PROP_NOTNULL; ;
    break;}
case 92:
#line 446 "yparser.y"
{ yyval.uint =3D yyvsp[0].uint; ;
    break;}
case 93:
#line 447 "yparser.y"
{ yyval.uint =3D yyvsp[-1].uint | yyvsp[0].uint; ;
    break;}
case 94:
#line 450 "yparser.y"
{ yyval.uint =3D ODL_PROP_NONE; ;
    break;}
case 95:
#line 451 "yparser.y"
{ yyval.uint =3D yyvsp[0].uint; ;
    break;}
case 96:
#line 455 "yparser.y"
{
               yyval.item =3D alloc_odl_item();
               if( yyval.item )
               {
                   yyval.item->base.parent =3D (odl_base *)yycurrent_cont=
ainer;
                   yyval.item->base.access =3D current_access;
                   yyval.item->base.name   =3D yyvsp[-4].string;
                   yyval.item->base.type   =3D IT_field;
                   yyval.item->fieldtype   =3D FT_basic;
                   yyval.item->format      =3D yyvsp[-3].string;
                   yyval.item->defaultval  =3D yyvsp[-2].string;
                   yyval.item->properties  =3D yyvsp[-1].uint;
               }
           ;
    break;}
case 97:
#line 471 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].item); ;
    break;}
case 98:
#line 472 "yparser.y"
{ yyval.list =3D g_list_append(yyvsp[-2].list,yyvsp[0].item);   ;
    break;}
case 99:
#line 475 "yparser.y"
{;
    break;}
case 100:
#line 478 "yparser.y"
{
              odl_item *i =3D alloc_odl_item();
              if( i )
              {
                  i->base.parent =3D (odl_base *)yycurrent_container;
                  i->base.type   =3D IT_field;
                  i->base.name   =3D yyvsp[-6].string;
                  i->base.access =3D current_access;
                  i->fieldtype   =3D FT_method;
                  i->arguments   =3D yyvsp[-2].list;
              }
              yyval.item =3D i;
          ;
    break;}
case 101:
#line 493 "yparser.y"
{ yyval.list =3D NULL; ;
    break;}
case 102:
#line 494 "yparser.y"
{ yyval.list =3D yyvsp[0].list;   ;
    break;}
case 103:
#line 497 "yparser.y"
{ yyval.argument =3D alloc_odl_argument();
                                    yyval.argument->name =3D yyvsp[-1].st=
ring;
                                    yyval.argument->datatype =3D yyvsp[-2=
].datatype->dt;
                                  ;
    break;}
case 104:
#line 503 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].argument); ;
    break;}
case 105:
#line 504 "yparser.y"
{ yyval.list =3D g_list_append(yyvsp[-2].list,yyvsp[0].argument);   ;
    break;}
case 106:
#line 507 "yparser.y"
{ ;
    break;}
case 107:
#line 510 "yparser.y"
{ yyval.list =3D yyvsp[-1].list; ;
    break;}
case 108:
#line 511 "yparser.y"
{ yyval.list =3D yyvsp[-1].list; ;
    break;}
case 109:
#line 512 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].string); ;
    break;}
case 110:
#line 513 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].string); ;
    break;}
case 111:
#line 516 "yparser.y"
{ yyval.list =3D g_list_append(NULL,yyvsp[0].string); ;
    break;}
case 112:
#line 517 "yparser.y"
{ yyval.list =3D g_list_append(yyvsp[-2].list,yyvsp[0].string);   ;
    break;}
case 113:
#line 520 "yparser.y"
{ yyval.list =3D yyvsp[0].list; /* fields in THIS object */ ;
    break;}
case 114:
#line 523 "yparser.y"
{ yyval.list =3D yyvsp[0].list; /* fields in class to load */ ;
    break;}
case 115:
#line 526 "yparser.y"
{
               yyval.datasource =3D yyvsp[-2].datasource;
               yyval.datasource->field =3D yyvsp[0].string;
           ;
    break;}
case 116:
#line 532 "yparser.y"
{
          _odl_datasource *d =3D alloc_odl_datasource();
          if( d )
          {
              d->classname =3D yyvsp[-3].string;
              d->fields =3D yyvsp[-1].list;
              d->field =3D NULL;
          }
          else yyerror( "Out of memory." );
          yyval.datasource =3D d;
      ;
    break;}
case 117:
#line 545 "yparser.y"
{
          _odl_datasource *d =3D alloc_odl_datasource();
          if( d )
          {
              d->classname =3D yyvsp[-3].string;
              d->fields =3D yyvsp[-1].list;
              d->field =3D NULL;
          }
          else yyerror( "Out of memory." );
          yyval.datasource =3D d;
      ;
    break;}
case 118:
#line 558 "yparser.y"
{
            odl_item *i =3D alloc_odl_item();
            g_assert( i !=3D NULL);
            if( i )
            {
                i->base.parent   =3D (odl_base *)yycurrent_container;
                i->base.type     =3D IT_field;
                i->base.name     =3D yyvsp[-5].string;
                i->base.access   =3D current_access;
                i->fieldtype     =3D FT_lookup;
                i->source_fields =3D yyvsp[-2].datasource->fields;
                i->this_fields   =3D yyvsp[0].list;
                i->sourceclass   =3D yyvsp[-2].datasource->classname;
                i->sourcefield   =3D yyvsp[-2].datasource->field;

                yyvsp[-2].datasource->classname =3D NULL;
                yyvsp[-2].datasource->fields =3D NULL;
                yyvsp[-2].datasource->field  =3D NULL;
                free_odl_datasource(yyvsp[-2].datasource);

                yyval.item =3D i;
            }
            else {
                yyerror("Out of memory.");
                yyval.item =3D NULL;
            }
        ;
    break;}
case 119:
#line 587 "yparser.y"
{
            odl_item *i =3D NULL;
           =20
            if( current_pass =3D=3D 1 )
              {
                i =3D alloc_odl_item();
                g_assert( i !=3D NULL);
              }
            if( i )
              {
                i->base.parent   =3D (odl_base *)yycurrent_container;
                i->base.type     =3D IT_field;
                i->base.name     =3D yyvsp[-5].string;
                i->base.access   =3D current_access;
                i->fieldtype     =3D FT_list;
                i->source_fields =3D yyvsp[-2].datasource->fields;
                i->this_fields   =3D yyvsp[0].list;
                i->sourceclass   =3D yyvsp[-2].datasource->classname;
                i->datatype      =3D DT_class;
                i->datatypeclass =3D g_strdup( i->sourceclass );

                yyvsp[-2].datasource->classname =3D NULL;
                yyvsp[-2].datasource->fields =3D NULL;
                free_odl_datasource(yyvsp[-2].datasource);

                yyval.item =3D i;
              }
            else if( current_pass =3D=3D 1 )
              {
                yyerror("Out of memory.");
                yyval.item =3D NULL;
              }
        ;
    break;}
case 120:
#line 622 "yparser.y"
{
            odl_item *i =3D NULL;
           =20
            if( current_pass =3D=3D 1 ) i =3D alloc_odl_item();
            if( i )
            {
                i->base.parent   =3D (odl_base *)yycurrent_container;
                i->base.type     =3D IT_field;
                i->base.name     =3D yyvsp[-5].string;
                i->base.access   =3D current_access;
                i->fieldtype     =3D FT_reference;
                i->source_fields =3D yyvsp[-2].datasource->fields;
                i->this_fields   =3D yyvsp[0].list;
                i->sourceclass   =3D yyvsp[-2].datasource->classname;
                i->datatype      =3D DT_class;
                i->datatypeclass =3D g_strdup( i->sourceclass );

                yyvsp[-2].datasource->classname =3D NULL;
                yyvsp[-2].datasource->fields =3D NULL;
                free_odl_datasource(yyvsp[-2].datasource);

                yyval.item =3D i;
            }
            else if( current_pass =3D=3D 1 ) {
                yyerror("Out of memory.");
                yyval.item =3D NULL;
            }
        ;
    break;}
case 123:
#line 658 "yparser.y"
{ yyval.boolean =3D FALSE; ;
    break;}
case 124:
#line 659 "yparser.y"
{ yyval.boolean =3D TRUE;  ;
    break;}
case 125:
#line 662 "yparser.y"
{ if( yycurrent_container->orderby )
                                            g_free( yycurrent_container->=
orderby );
                                        yycurrent_container->orderby =3D =
yyvsp[-3].string;
=09=09=09=09=09yycurrent_container->desc =3D yyvsp[-1].boolean;
                                      ;
    break;}
}

#line 610 "/usr/share/bison/bison.simple"

=0C
  yyvsp -=3D yylen;
  yyssp -=3D yylen;
#if YYLSP_NEEDED
  yylsp -=3D yylen;
#endif

#if YYDEBUG
  if (yydebug)
    {
      short *ssp1 =3D yyss - 1;
      fprintf (stderr, "state stack now");
      while (ssp1 !=3D yyssp)
=09fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

  *++yyvsp =3D yyval;
#if YYLSP_NEEDED
  *++yylsp =3D yyloc;
#endif

  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn =3D yyr1[yyn];

  yystate =3D yypgoto[yyn - YYNTBASE] + *yyssp;
  if (yystate >=3D 0 && yystate <=3D YYLAST && yycheck[yystate] =3D=3D *y=
yssp)
    yystate =3D yytable[yystate];
  else
    yystate =3D yydefgoto[yyn - YYNTBASE];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn =3D yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
=09{
=09  int size =3D 0;
=09  char *msg;
=09  int x, count;

=09  count =3D 0;
=09  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
=09  for (x =3D (yyn < 0 ? -yyn : 0);
=09       x < (int) (sizeof (yytname) / sizeof (char *)); x++)
=09    if (yycheck[x + yyn] =3D=3D x)
=09      size +=3D strlen (yytname[x]) + 15, count++;
=09  size +=3D strlen ("parse error, unexpected `") + 1;
=09  size +=3D strlen (yytname[YYTRANSLATE (yychar)]);
=09  msg =3D (char *) malloc (size);
=09  if (msg !=3D 0)
=09    {
=09      strcpy (msg, "parse error, unexpected `");
=09      strcat (msg, yytname[YYTRANSLATE (yychar)]);
=09      strcat (msg, "'");

=09      if (count < 5)
=09=09{
=09=09  count =3D 0;
=09=09  for (x =3D (yyn < 0 ? -yyn : 0);
=09=09       x < (int) (sizeof (yytname) / sizeof (char *)); x++)
=09=09    if (yycheck[x + yyn] =3D=3D x)
=09=09      {
=09=09=09strcat (msg, count =3D=3D 0 ? ", expecting `" : " or `");
=09=09=09strcat (msg, yytname[x]);
=09=09=09strcat (msg, "'");
=09=09=09count++;
=09=09      }
=09=09}
=09      yyerror (msg);
=09      free (msg);
=09    }
=09  else
=09    yyerror ("parse error; also virtual memory exceeded");
=09}
      else
#endif /* YYERROR_VERBOSE */
=09yyerror ("parse error");
    }
  goto yyerrlab1;


/*--------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action |
`--------------------------------------------------*/
yyerrlab1:
  if (yyerrstatus =3D=3D 3)
    {
      /* If just tried and failed to reuse lookahead token after an
=09 error, discard it.  */

      /* return failure if at end of input */
      if (yychar =3D=3D YYEOF)
=09YYABORT;
      YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
=09=09  yychar, yytname[yychar1]));
      yychar =3D YYEMPTY;
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */

  yyerrstatus =3D 3;=09=09/* Each real token shifted decrements this */

  goto yyerrhandle;


/*-------------------------------------------------------------------.
| yyerrdefault -- current state does not do anything special for the |
| error token.                                                       |
`-------------------------------------------------------------------*/
yyerrdefault:
#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */

  /* If its default is to accept any token, ok.  Otherwise pop it.  */
  yyn =3D yydefact[yystate];
  if (yyn)
    goto yydefault;
#endif


/*---------------------------------------------------------------.
| yyerrpop -- pop the current state because it cannot handle the |
| error token                                                    |
`---------------------------------------------------------------*/
yyerrpop:
  if (yyssp =3D=3D yyss)
    YYABORT;
  yyvsp--;
  yystate =3D *--yyssp;
#if YYLSP_NEEDED
  yylsp--;
#endif

#if YYDEBUG
  if (yydebug)
    {
      short *ssp1 =3D yyss - 1;
      fprintf (stderr, "Error: state stack now");
      while (ssp1 !=3D yyssp)
=09fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

/*--------------.
| yyerrhandle.  |
`--------------*/
yyerrhandle:
  yyn =3D yypact[yystate];
  if (yyn =3D=3D YYFLAG)
    goto yyerrdefault;

  yyn +=3D YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] !=3D YYTERROR)
    goto yyerrdefault;

  yyn =3D yytable[yyn];
  if (yyn < 0)
    {
      if (yyn =3D=3D YYFLAG)
=09goto yyerrpop;
      yyn =3D -yyn;
      goto yyreduce;
    }
  else if (yyn =3D=3D 0)
    goto yyerrpop;

  if (yyn =3D=3D YYFINAL)
    YYACCEPT;

  YYDPRINTF ((stderr, "Shifting error token, "));

  *++yyvsp =3D yylval;
#if YYLSP_NEEDED
  *++yylsp =3D yylloc;
#endif

  yystate =3D yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  if (yyfree_stacks)
    {
      free (yyss);
      free (yyvs);
#if YYLSP_NEEDED
      free (yyls);
#endif
    }
  return 0;


/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  if (yyfree_stacks)
    {
      free (yyss);
      free (yyvs);
#if YYLSP_NEEDED
      free (yyls);
#endif
    }
  return 1;
}
#line 667 "yparser.y"

--------------Boundary-00=_CMEJ5S7EZQI7K7HIOYUP--


