home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
graphics
/
graphtal.lha
/
Graphtal
/
lex.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-20
|
58KB
|
1,944 lines
/* A lexical scanner generated by flex */
/* scanner skeleton version:
* $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.16 90/08/03 14:09:36 vern Exp $
*/
#define FLEX_SCANNER
#include <stdio.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#ifndef __DECCXX
#include <osfcn.h>
#else
#include <unistd.h>
#endif
/* use prototypes in function declarations */
#define YY_USE_PROTOS
/* the "const" storage-class-modifier is valid */
#define YY_USE_CONST
#else /* ! __cplusplus */
#ifdef __STDC__
#include <stdlib.h>
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#define YY_USE_CONST
#endif
#ifndef YY_USE_CONST
#define const
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
/* we can't get here if it's an ANSI C compiler, or a C++ compiler,
* so it's got to be a K&R compiler, and therefore there's no standard
* place from which to include these definitions
*/
char *malloc();
int free();
int read();
#endif
/* amount of stuff to slurp up with each read */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* returned upon end-of-file */
#define YY_END_TOK 0
/* copy whatever the last rule matched to the standard output */
/* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
/* this used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite()
*/
#define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
/* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#define YY_INPUT(buf,result,max_size) \
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "read() in flex scanner failed" );
#define YY_NULL 0
/* no semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#define yyterminate() return ( YY_NULL )
/* report a fatal error */
/* The funky do-while is used to turn this macro definition into
* a single C statement (which needs a semi-colon terminator).
* This avoids problems with code like:
*
* if ( something_happens )
* YY_FATAL_ERROR( "oops, the something happened" );
* else
* everything_okay();
*
* Prior to using the do-while the compiler would get upset at the
* "else" because it interpreted the "if" statement as being all
* done when it reached the ';' after the YY_FATAL_ERROR() call.
*/
#define YY_FATAL_ERROR(msg) \
do \
{ \
(void) fputs( msg, stderr ); \
(void) putc( '\n', stderr ); \
exit( 1 ); \
} \
while ( 0 )
/* default yywrap function - always treat EOF as an EOF */
#define yywrap() 1
/* enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN
*/
#define BEGIN yy_start = 1 + 2 *
/* action number for EOF rule of a given start state */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* special action meaning "start processing a new file" */
#define YY_NEW_FILE \
do \
{ \
yy_init_buffer( yy_current_buffer, yyin ); \
yy_load_buffer_state(); \
} \
while ( 0 )
/* default declaration of generated scanner - a define so the user can
* easily add parameters
*/
#define YY_DECL int yylex YY_PROTO(( void ))
/* code executed at the end of each rule */
#define YY_BREAK break;
#define YY_END_OF_BUFFER_CHAR 0
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
#endif
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#define YY_CHAR char
# line 1 "lex.l"
#define INITIAL 0
# line 2 "lex.l"
/*
* lex.l - lexical analyser for graphtal.
*
* Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
* University of Berne, Switzerland
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product without the express consent of the authors.
*
* There is no warranty or other guarantee of fitness of this software
* for any purpose. It is provided solely "as is".
*
*/
#include <math.h>
#include "rcString.h"
#include "LSystem.h"
#include "Value.h"
#include "Hull.h"
#include "yacc.tab.h"
#include "yyerror.h"
int lineno = 1;
#define C_COMMENT 1
#define CPP_COMMENT 2
#define EXTFILE 3
# line 42 "lex.l"
/* done after the current pattern has been matched and before the
* corresponding action - sets up yytext
*/
#define YY_DO_BEFORE_ACTION \
yytext = yy_bp; \
yyleng = yy_cp - yy_bp; \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* return all but the first 'n' matched characters back to the input stream */
#define yyless(n) \
do \
{ \
/* undo effects of setting up yytext */ \
*yy_cp = yy_hold_char; \
yy_c_buf_p = yy_cp = yy_bp + n; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext )
struct yy_buffer_state
{
FILE *yy_input_file;
YY_CHAR *yy_ch_buf; /* input buffer */
YY_CHAR *yy_buf_pos; /* current position in input buffer */
/* size of input buffer in bytes, not including room for EOB characters*/
int yy_buf_size;
/* number of characters read into yy_ch_buf, not including EOB characters */
int yy_n_chars;
int yy_eof_status; /* whether we've seen an EOF on this buffer */
#define EOF_NOT_SEEN 0
/* "pending" happens when the EOF has been seen but there's still
* some text process
*/
#define EOF_PENDING 1
#define EOF_DONE 2
};
static YY_BUFFER_STATE yy_current_buffer;
/* we provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state"
*/
#define YY_CURRENT_BUFFER yy_current_buffer
/* yy_hold_char holds the character lost when yytext is formed */
static YY_CHAR yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
#ifndef YY_USER_INIT
#define YY_USER_INIT
#endif
extern YY_CHAR *yytext;
extern int yyleng;
extern FILE *yyin, *yyout;
YY_CHAR *yytext;
int yyleng;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
#define YY_END_OF_BUFFER 117
typedef int yy_state_type;
static const short int yy_acclist[665] =
{ 0,
117, 107, 116, 105, 107, 116, 106, 116, 22, 107,
116, 107, 116, 28, 107, 116, 21, 107, 116, 25,
107, 116, 11, 107, 116, 12, 107, 116, 19, 107,
116, 17, 107, 116, 8, 107, 116, 18, 107, 116,
29, 107, 116, 20, 107, 116, 104, 107, 116, 23,
107, 116, 9, 107, 116, 39, 107, 116, 10, 107,
116, 40, 107, 116, 100, 107, 116,16483, 100, 107,
116,16483, 13, 107, 116, 26, 107, 116, 14, 107,
116, 24, 107, 116, 100, 107, 116,16483, 100, 107,
116,16483, 100, 107, 116,16483, 100, 107, 116,16483,
100, 107, 116,16483, 100, 107, 116,16483, 100, 107,
116,16483, 100, 107, 116,16483, 100, 107, 116,16483,
100, 107, 116,16483, 100, 107, 116,16483, 100, 107,
116,16483, 100, 107, 116,16483, 100, 107, 116,16483,
100, 107, 116,16483, 15, 107, 116, 27, 107, 116,
16, 107, 116, 30, 107, 116, 1, 107, 116, 111,
116, 110, 116, 111, 116, 111, 116, 114, 116, 113,
116, 4, 116, 5, 116, 4, 116, 4, 116, 2,
4, 116, 3, 4, 116, 105, 36, 101, 33, 32,
41, 102, 6, 7, 103, 104, 31, 38, 35, 37,
100,16483, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 100,16483, 55, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 65, 100,16483, 66, 100,
16483, 67, 100,16483, 85, 100,16483, 100,16483, 34,
108, 109, 3, 2, 3, 3, 102, 103, 104, 8291,
59, 100,16483, 100,16483, 100,16483, 100,16483, 48,
100,16483, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 100,16483, 100,16483, 43, 100,16483, 100,
16483, 100,16483, 50, 100,16483, 83, 100,16483, 100,
16483, 100,16483, 86, 100,16483, 100,16483, 100,16483,
100,16483, 51, 100,16483, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 100,16483, 100,16483, 100,
16483, 42, 100,16483, 100,16483, 100,16483, 100,16483,
44, 100,16483, 100,16483, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 102, 103, 100,16483, 56,
100,16483, 100,16483, 46, 100,16483, 100,16483, 45,
100,16483, 47, 100,16483, 100,16483, 100,16483, 92,
100,16483, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 100,16483, 87, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 100,16483, 100,16483, 53,
100,16483, 76, 100,16483, 100,16483, 100,16483, 100,
16483, 49, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 63, 100,16483, 77, 100,16483, 100,16483,
102, 103, 100,16483, 61, 100,16483, 100,16483, 100,
16483, 78, 100,16483, 100,16483, 74, 100,16483, 100,
16483, 71, 100,16483, 100,16483, 100,16483, 64, 100,
16483, 100,16483, 54, 100,16483, 100,16483, 52, 100,
16483, 100,16483, 100,16483, 75, 100,16483, 90, 100,
16483, 100,16483, 100,16483, 96, 100,16483, 100,16483,
70, 100,16483, 100,16483, 100,16483, 100,16483, 100,
16483, 62, 100,16483, 57, 100,16483, 58, 100,16483,
100,16483, 100,16483, 100,16483, 100,16483, 100,16483,
100,16483, 100,16483, 84, 100,16483, 100,16483, 100,
16483, 97, 100,16483, 88, 100,16483, 100,16483, 100,
16483, 100,16483, 100,16483, 82, 100,16483, 60, 100,
16483, 100,16483, 93, 100,16483, 100,16483, 100,16483,
79, 100,16483, 100,16483, 69, 100,16483, 100,16483,
100,16483, 100,16483, 100,16483, 100,16483, 81, 100,
16483, 100,16483, 91, 100,16483, 100,16483, 68, 100,
16483, 100,16483, 100,16483, 100,16483, 100,16483, 89,
100,16483, 100,16483, 100,16483, 80, 100,16483, 94,
100,16483, 98, 100,16483, 95, 100,16483, 72, 100,
16483, 73, 100,16483
} ;
static const short int yy_accept[312] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
4, 7, 9, 12, 14, 17, 20, 23, 26, 29,
32, 35, 38, 41, 44, 47, 50, 53, 56, 59,
62, 65, 69, 73, 76, 79, 82, 85, 89, 93,
97, 101, 105, 109, 113, 117, 121, 125, 129, 133,
137, 141, 145, 148, 151, 154, 157, 160, 162, 164,
166, 168, 170, 172, 174, 176, 178, 180, 183, 186,
187, 188, 188, 189, 190, 191, 192, 193, 194, 195,
196, 197, 197, 198, 199, 200, 201, 201, 203, 203,
205, 207, 209, 211, 213, 215, 217, 219, 221, 223,
225, 227, 229, 231, 233, 235, 238, 240, 242, 244,
246, 248, 250, 252, 254, 256, 258, 260, 262, 264,
266, 269, 272, 275, 278, 280, 281, 282, 283, 283,
283, 283, 283, 284, 285, 286, 287, 287, 289, 289,
289, 290, 291, 294, 296, 298, 300, 303, 305, 307,
309, 311, 313, 315, 317, 320, 322, 324, 327, 330,
332, 334, 337, 339, 341, 343, 346, 348, 350, 352,
354, 356, 358, 360, 362, 365, 367, 369, 371, 374,
376, 378, 380, 382, 384, 386, 386, 386, 387, 387,
387, 388, 390, 393, 395, 398, 400, 403, 406, 408,
410, 413, 415, 417, 419, 421, 423, 425, 428, 430,
432, 434, 436, 438, 440, 443, 446, 448, 450, 452,
455, 457, 459, 461, 463, 466, 469, 471, 471, 473,
475, 478, 480, 482, 485, 487, 490, 492, 495, 497,
499, 502, 504, 507, 509, 512, 514, 516, 519, 522,
524, 526, 529, 531, 534, 536, 538, 540, 542, 545,
548, 551, 553, 555, 557, 559, 561, 563, 565, 568,
570, 572, 575, 578, 580, 582, 584, 586, 589, 592,
594, 597, 599, 601, 604, 606, 609, 611, 613, 615,
617, 619, 622, 624, 627, 629, 632, 634, 636, 638,
640, 643, 645, 647, 650, 653, 656, 659, 662, 665,
665
} ;
static const YY_CHAR yy_ec[128] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 5, 6, 7, 8, 9, 1, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 21, 21, 21, 21, 21, 23, 24, 25,
26, 27, 1, 1, 28, 28, 28, 28, 29, 28,
28, 28, 30, 28, 28, 31, 32, 33, 28, 34,
35, 36, 37, 38, 28, 28, 28, 28, 28, 28,
39, 40, 41, 42, 43, 1, 44, 45, 46, 47,
48, 49, 50, 51, 52, 28, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
67, 68, 69, 70, 71, 72, 1
} ;
static const YY_CHAR yy_meta[73] =
{ 0,
1, 2, 3, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 4, 5, 5, 6, 6, 6,
6, 6, 1, 1, 1, 7, 1, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 1, 1,
1, 1, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 1, 1,
1, 1
} ;
static const short int yy_base[318] =
{ 0,
0, 384, 70, 71, 384, 374, 88, 0, 364, 1067,
342, 1067, 287, 305, 1067, 1067, 274, 1067, 1067, 267,
1067, 1067, 227, 57, 68, 145, 210, 1067, 190, 182,
180, 160, 166, 1067, 1067, 1067, 1067, 168, 169, 170,
171, 175, 173, 176, 179, 185, 189, 196, 205, 218,
201, 219, 1067, 134, 1067, 1067, 1067, 1067, 1067, 168,
157, 1067, 1067, 1067, 1067, 163, 166, 250, 167, 84,
1067, 79, 1067, 1067, 1067, 1067, 269, 1067, 1067, 274,
286, 305, 1067, 1067, 1067, 1067, 174, 186, 0, 221,
271, 223, 307, 309, 275, 310, 312, 274, 314, 273,
319, 327, 328, 337, 339, 340, 345, 346, 344, 350,
353, 349, 354, 357, 358, 356, 376, 383, 389, 384,
387, 393, 396, 397, 404, 1067, 1067, 1067, 64, 173,
244, 249, 231, 429, 239, 326, 440, 445, 457, 462,
467, 1067, 416, 466, 443, 469, 488, 489, 492, 495,
496, 494, 498, 499, 500, 501, 504, 503, 505, 506,
507, 508, 509, 510, 511, 539, 536, 514, 540, 517,
543, 542, 555, 557, 559, 569, 572, 574, 575, 576,
577, 578, 582, 586, 589, 333, 604, 625, 635, 640,
645, 590, 592, 605, 580, 603, 611, 612, 647, 650,
666, 667, 668, 669, 670, 672, 675, 676, 678, 682,
677, 680, 681, 683, 684, 685, 686, 687, 689, 688,
717, 718, 720, 721, 725, 726, 735, 735, 748, 756,
736, 758, 737, 738, 757, 769, 770, 775, 779, 783,
785, 786, 787, 788, 789, 790, 791, 795, 796, 798,
797, 802, 806, 804, 808, 805, 817, 818, 823, 833,
834, 845, 835, 840, 846, 848, 849, 856, 861, 862,
867, 865, 866, 871, 877, 879, 874, 881, 882, 883,
887, 888, 897, 904, 909, 910, 913, 914, 918, 920,
925, 929, 932, 930, 935, 939, 940, 941, 945, 948,
951, 957, 958, 961, 967, 968, 973, 977, 983, 1067,
1018, 1026, 1034, 1041, 1045, 1050, 1058
} ;
static const short int yy_def[318] =
{ 0,
310, 1, 311, 311, 312, 312, 310, 7, 310, 310,
310, 310, 310, 313, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 314, 314, 310, 310, 310, 310, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 315, 310, 316, 310,
310, 313, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 314, 317, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 310, 310, 310, 310, 315,
310, 315, 316, 310, 316, 316, 310, 310, 310, 310,
310, 310, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 315, 310, 310, 310, 310,
310, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 310, 310, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 314,
314, 314, 314, 314, 314, 314, 314, 314, 314, 0,
310, 310, 310, 310, 310, 310, 310
} ;
static const short int yy_nxt[1140] =
{ 0,
10, 11, 12, 13, 14, 10, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26, 26, 26,
26, 26, 27, 28, 29, 30, 31, 32, 32, 32,
32, 33, 32, 32, 32, 32, 32, 32, 34, 35,
36, 37, 32, 38, 32, 39, 40, 41, 42, 43,
44, 45, 32, 46, 32, 32, 32, 47, 32, 48,
49, 50, 51, 32, 52, 32, 32, 32, 53, 54,
55, 56, 59, 59, 77, 77, 77, 77, 77, 78,
130, 60, 60, 73, 79, 70, 61, 61, 64, 64,
65, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 66, 67, 68, 68, 68, 68, 68,
64, 64, 64, 64, 64, 69, 69, 69, 69, 69,
69, 69, 69, 69, 69, 69, 64, 64, 64, 64,
69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
69, 69, 69, 69, 69, 69, 64, 64, 64, 64,
80, 87, 81, 81, 81, 81, 81, 87, 128, 87,
87, 87, 87, 82, 87, 87, 87, 87, 129, 130,
87, 131, 132, 130, 127, 89, 87, 87, 131, 310,
87, 89, 82, 89, 89, 89, 89, 87, 89, 89,
89, 89, 87, 126, 89, 86, 87, 85, 90, 136,
89, 89, 91, 92, 89, 84, 104, 99, 102, 87,
87, 89, 87, 93, 87, 97, 89, 106, 94, 95,
89, 103, 83, 96, 107, 98, 100, 101, 105, 112,
110, 108, 111, 89, 89, 109, 89, 130, 89, 143,
114, 144, 113, 76, 145, 130, 115, 146, 124, 129,
130, 118, 116, 117, 131, 186, 125, 134, 134, 134,
134, 134, 87, 136, 87, 87, 87, 119, 75, 148,
120, 136, 74, 121, 122, 123, 77, 77, 77, 77,
77, 138, 138, 138, 138, 138, 89, 137, 89, 89,
89, 80, 139, 81, 81, 81, 81, 81, 87, 73,
87, 87, 71, 87, 82, 87, 137, 140, 151, 140,
87, 139, 141, 141, 141, 141, 141, 156, 87, 87,
158, 147, 89, 82, 89, 89, 152, 89, 87, 89,
87, 87, 130, 70, 89, 87, 87, 87, 131, 310,
87, 87, 89, 89, 87, 87, 149, 87, 87, 87,
150, 153, 89, 310, 89, 89, 159, 154, 136, 89,
89, 89, 155, 157, 89, 89, 63, 87, 89, 89,
160, 89, 89, 89, 87, 87, 63, 161, 87, 57,
87, 162, 164, 165, 87, 166, 170, 87, 87, 163,
174, 89, 167, 310, 171, 87, 176, 172, 89, 89,
168, 169, 89, 175, 89, 173, 310, 87, 89, 310,
310, 89, 89, 310, 310, 310, 310, 178, 310, 89,
310, 310, 180, 310, 310, 177, 310, 310, 179, 310,
181, 89, 310, 184, 87, 182, 134, 134, 134, 134,
134, 183, 187, 310, 187, 185, 310, 188, 188, 188,
188, 188, 138, 138, 138, 138, 138, 87, 89, 190,
87, 190, 193, 189, 191, 191, 191, 191, 191, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 87,
87, 89, 189, 87, 89, 87, 87, 87, 192, 87,
87, 87, 87, 194, 87, 87, 87, 87, 87, 87,
87, 87, 87, 89, 89, 87, 310, 89, 87, 89,
89, 89, 310, 89, 89, 89, 89, 310, 89, 89,
89, 89, 89, 89, 89, 89, 89, 87, 310, 89,
87, 87, 89, 87, 87, 196, 201, 310, 310, 195,
197, 198, 203, 199, 200, 204, 87, 210, 87, 202,
87, 89, 209, 208, 89, 89, 205, 89, 89, 207,
87, 206, 214, 87, 212, 87, 87, 87, 87, 87,
89, 87, 89, 87, 89, 213, 310, 87, 211, 215,
87, 87, 310, 87, 89, 216, 310, 89, 217, 89,
89, 89, 89, 89, 87, 89, 87, 89, 230, 231,
218, 89, 87, 87, 89, 89, 219, 89, 310, 310,
223, 188, 188, 188, 188, 188, 310, 221, 89, 225,
89, 222, 310, 220, 232, 224, 89, 89, 227, 310,
233, 226, 188, 188, 188, 188, 188, 228, 87, 228,
234, 87, 229, 229, 229, 229, 229, 191, 191, 191,
191, 191, 191, 191, 191, 191, 191, 87, 87, 87,
87, 87, 89, 87, 310, 89, 87, 87, 87, 87,
310, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 89, 89, 89, 89, 89, 310, 89, 235, 245,
89, 89, 89, 89, 236, 89, 89, 89, 89, 89,
89, 89, 89, 89, 89, 242, 310, 241, 87, 87,
246, 87, 87, 239, 310, 237, 87, 87, 238, 310,
249, 248, 240, 244, 252, 243, 87, 87, 87, 87,
250, 247, 89, 89, 310, 89, 89, 251, 253, 310,
89, 89, 229, 229, 229, 229, 229, 87, 87, 87,
89, 89, 89, 89, 254, 229, 229, 229, 229, 229,
87, 87, 257, 259, 262, 256, 87, 260, 255, 261,
87, 89, 89, 89, 87, 258, 87, 87, 87, 87,
87, 87, 87, 310, 89, 89, 87, 87, 87, 87,
89, 263, 310, 87, 89, 87, 87, 87, 89, 87,
89, 89, 89, 89, 89, 89, 89, 264, 87, 87,
89, 89, 89, 89, 87, 265, 266, 89, 310, 89,
89, 89, 310, 89, 87, 87, 87, 310, 270, 268,
310, 87, 89, 89, 272, 267, 87, 87, 89, 87,
87, 269, 271, 273, 276, 310, 274, 87, 89, 89,
89, 275, 87, 87, 279, 89, 87, 87, 87, 310,
89, 89, 87, 89, 89, 87, 310, 277, 87, 278,
87, 89, 87, 87, 87, 310, 89, 89, 87, 87,
89, 89, 89, 282, 310, 284, 89, 280, 87, 89,
281, 310, 89, 310, 89, 87, 89, 89, 89, 283,
87, 87, 89, 89, 87, 87, 286, 285, 287, 87,
290, 87, 89, 310, 310, 288, 87, 289, 292, 89,
87, 87, 291, 87, 89, 89, 87, 310, 89, 89,
87, 87, 87, 89, 293, 89, 87, 294, 295, 87,
89, 310, 87, 310, 89, 89, 310, 89, 87, 87,
89, 298, 87, 310, 89, 89, 89, 310, 87, 87,
89, 310, 301, 89, 87, 296, 89, 299, 87, 302,
297, 300, 89, 89, 87, 310, 89, 304, 310, 310,
310, 303, 89, 89, 310, 307, 310, 310, 89, 306,
310, 305, 89, 310, 310, 310, 310, 310, 89, 310,
310, 310, 310, 309, 310, 310, 310, 308, 58, 58,
58, 58, 58, 58, 58, 58, 62, 62, 62, 62,
62, 62, 62, 62, 72, 72, 310, 72, 72, 72,
72, 72, 88, 310, 310, 310, 88, 88, 88, 133,
310, 310, 133, 135, 135, 135, 310, 135, 142, 142,
142, 142, 142, 142, 310, 142, 9, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310
} ;
static const short int yy_chk[1140] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 3, 4, 24, 24, 24, 24, 24, 25,
129, 3, 4, 72, 25, 70, 3, 4, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
26, 32, 26, 26, 26, 26, 26, 33, 61, 38,
39, 40, 41, 26, 43, 87, 42, 44, 66, 66,
45, 67, 67, 69, 60, 32, 46, 88, 130, 130,
47, 33, 26, 38, 39, 40, 41, 48, 43, 87,
42, 44, 51, 54, 45, 31, 49, 30, 33, 69,
46, 88, 38, 38, 47, 29, 43, 40, 42, 50,
52, 48, 90, 38, 92, 39, 51, 45, 38, 38,
49, 42, 27, 38, 45, 39, 41, 41, 44, 48,
47, 46, 47, 50, 52, 46, 90, 133, 92, 90,
49, 90, 48, 23, 90, 135, 49, 90, 51, 131,
131, 50, 49, 49, 132, 132, 52, 68, 68, 68,
68, 68, 91, 133, 100, 98, 95, 50, 20, 92,
50, 135, 17, 50, 50, 50, 77, 77, 77, 77,
77, 80, 80, 80, 80, 80, 91, 77, 100, 98,
95, 81, 80, 81, 81, 81, 81, 81, 93, 14,
94, 96, 13, 97, 81, 99, 77, 82, 95, 82,
101, 80, 82, 82, 82, 82, 82, 98, 102, 103,
100, 91, 93, 81, 94, 96, 95, 97, 104, 99,
105, 106, 136, 11, 101, 109, 107, 108, 186, 186,
112, 110, 102, 103, 111, 113, 93, 116, 114, 115,
94, 96, 104, 9, 105, 106, 101, 97, 136, 109,
107, 108, 97, 99, 112, 110, 6, 117, 111, 113,
102, 116, 114, 115, 118, 120, 5, 103, 121, 2,
119, 103, 105, 107, 122, 108, 111, 123, 124, 104,
114, 117, 108, 0, 112, 125, 116, 113, 118, 120,
109, 110, 121, 115, 119, 113, 0, 143, 122, 0,
0, 123, 124, 0, 0, 0, 0, 118, 0, 125,
0, 0, 119, 0, 0, 117, 0, 0, 118, 0,
119, 143, 0, 120, 145, 119, 134, 134, 134, 134,
134, 119, 137, 0, 137, 125, 0, 137, 137, 137,
137, 137, 138, 138, 138, 138, 138, 144, 145, 139,
146, 139, 145, 138, 139, 139, 139, 139, 139, 140,
140, 140, 140, 140, 141, 141, 141, 141, 141, 147,
148, 144, 138, 149, 146, 152, 150, 151, 144, 153,
154, 155, 156, 146, 158, 157, 159, 160, 161, 162,
163, 164, 165, 147, 148, 168, 0, 149, 170, 152,
150, 151, 0, 153, 154, 155, 156, 0, 158, 157,
159, 160, 161, 162, 163, 164, 165, 167, 0, 168,
166, 169, 170, 172, 171, 149, 154, 0, 0, 148,
150, 151, 156, 152, 153, 157, 173, 166, 174, 154,
175, 167, 165, 164, 166, 169, 160, 172, 171, 163,
176, 161, 170, 177, 168, 178, 179, 180, 181, 182,
173, 195, 174, 183, 175, 169, 0, 184, 167, 171,
185, 192, 0, 193, 176, 172, 0, 177, 173, 178,
179, 180, 181, 182, 196, 195, 194, 183, 192, 192,
174, 184, 197, 198, 185, 192, 176, 193, 0, 0,
181, 187, 187, 187, 187, 187, 0, 178, 196, 183,
194, 180, 0, 177, 193, 182, 197, 198, 185, 0,
194, 184, 188, 188, 188, 188, 188, 189, 199, 189,
196, 200, 189, 189, 189, 189, 189, 190, 190, 190,
190, 190, 191, 191, 191, 191, 191, 201, 202, 203,
204, 205, 199, 206, 0, 200, 207, 208, 211, 209,
0, 212, 213, 210, 214, 215, 216, 217, 218, 220,
219, 201, 202, 203, 204, 205, 0, 206, 199, 210,
207, 208, 211, 209, 200, 212, 213, 210, 214, 215,
216, 217, 218, 220, 219, 206, 0, 205, 221, 222,
211, 223, 224, 203, 0, 201, 225, 226, 202, 0,
214, 213, 204, 209, 218, 207, 227, 231, 233, 234,
215, 212, 221, 222, 0, 223, 224, 217, 219, 0,
225, 226, 228, 228, 228, 228, 228, 230, 235, 232,
227, 231, 233, 234, 221, 229, 229, 229, 229, 229,
236, 237, 224, 230, 233, 223, 238, 232, 222, 232,
239, 230, 235, 232, 240, 227, 241, 242, 243, 244,
245, 246, 247, 0, 236, 237, 248, 249, 251, 250,
238, 235, 0, 252, 239, 254, 256, 253, 240, 255,
241, 242, 243, 244, 245, 246, 247, 237, 257, 258,
248, 249, 251, 250, 259, 239, 240, 252, 0, 254,
256, 253, 0, 255, 260, 261, 263, 0, 247, 244,
0, 264, 257, 258, 251, 242, 262, 265, 259, 266,
267, 246, 250, 253, 256, 0, 255, 268, 260, 261,
263, 255, 269, 270, 262, 264, 272, 273, 271, 0,
262, 265, 274, 266, 267, 277, 0, 257, 275, 258,
276, 268, 278, 279, 280, 0, 269, 270, 281, 282,
272, 273, 271, 265, 0, 267, 274, 263, 283, 277,
264, 0, 275, 0, 276, 284, 278, 279, 280, 266,
285, 286, 281, 282, 287, 288, 270, 268, 271, 289,
275, 290, 283, 0, 0, 273, 291, 274, 277, 284,
292, 294, 276, 293, 285, 286, 295, 0, 287, 288,
296, 297, 298, 289, 280, 290, 299, 282, 283, 300,
291, 0, 301, 0, 292, 294, 0, 293, 302, 303,
295, 288, 304, 0, 296, 297, 298, 0, 305, 306,
299, 0, 291, 300, 307, 285, 301, 289, 308, 293,
287, 290, 302, 303, 309, 0, 304, 297, 0, 0,
0, 295, 305, 306, 0, 300, 0, 0, 307, 299,
0, 298, 308, 0, 0, 0, 0, 0, 309, 0,
0, 0, 0, 303, 0, 0, 0, 302, 311, 311,
311, 311, 311, 311, 311, 311, 312, 312, 312, 312,
312, 312, 312, 312, 313, 313, 0, 313, 313, 313,
313, 313, 314, 0, 0, 0, 314, 314, 314, 315,
0, 0, 315, 316, 316, 316, 0, 316, 317, 317,
317, 317, 317, 317, 0, 317, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310
} ;
static yy_state_type yy_last_accepting_state;
static YY_CHAR *yy_last_accepting_cpos;
static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
static YY_CHAR *yy_full_match;
static int yy_lp;
static int yy_looking_for_trail_begin = 0;
static int yy_full_lp;
static int *yy_full_state;
#define YY_TRAILING_MASK 0x2000
#define YY_TRAILING_HEAD_MASK 0x4000
#define REJECT \
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \
yy_state_ptr = yy_full_state; /* restore orig. state */ \
yy_current_state = *yy_state_ptr; /* restore curr. state */ \
++yy_lp; \
goto find_rule; \
}
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
/* these variables are all declared out here so that section 3 code can
* manipulate them
*/
/* points to current character in buffer */
static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
static int yy_init = 1; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
#define yy_new_buffer yy_create_buffer
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
YY_DECL
{
register yy_state_type yy_current_state;
register YY_CHAR *yy_cp, *yy_bp;
register int yy_act;
if ( yy_init )
{
YY_USER_INIT;
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( yy_current_buffer )
yy_init_buffer( yy_current_buffer, yyin );
else
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
yy_init = 0;
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = yy_c_buf_p;
/* support of yytext */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of the
* current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
++yy_current_state;
yy_state_ptr = yy_state_buf;
*yy_state_ptr++ = yy_current_state;
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[*yy_cp];
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = yy_def[yy_current_state];
if ( yy_current_state >= 311 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
*yy_state_ptr++ = yy_current_state;
++yy_cp;
}
while ( yy_current_state != 310 );
yy_find_action:
yy_current_state = *--yy_state_ptr;
yy_lp = yy_accept[yy_current_state];
find_rule: /* we branch to this label when backtracking */
for ( ; ; ) /* until we find what rule we matched */
{
if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
{
yy_act = yy_acclist[yy_lp];
if ( yy_act & YY_TRAILING_HEAD_MASK ||
yy_looking_for_trail_begin )
{
if ( yy_act == yy_looking_for_trail_begin )
{
yy_looking_for_trail_begin = 0;
yy_act &= ~YY_TRAILING_HEAD_MASK;
break;
}
}
else if ( yy_act & YY_TRAILING_MASK )
{
yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
}
else
{
yy_full_match = yy_cp;
yy_full_state = yy_state_ptr;
yy_full_lp = yy_lp;
break;
}
++yy_lp;
goto find_rule;
}
--yy_cp;
yy_current_state = *--yy_state_ptr;
yy_lp = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
YY_USER_ACTION;
do_action: /* this label is used only to access EOF actions */
switch ( yy_act )
{
case 1:
# line 44 "lex.l"
BEGIN(EXTFILE);
YY_BREAK
case 2:
# line 45 "lex.l"
lineno = atoi(yytext);
YY_BREAK
case 3:
# line 46 "lex.l"
currentFilename = yytext;
YY_BREAK
case 4:
# line 47 "lex.l"
;
YY_BREAK
case 5:
# line 48 "lex.l"
BEGIN 0;
YY_BREAK
case 6:
# line 50 "lex.l"
BEGIN(C_COMMENT);
YY_BREAK
case 7:
# line 51 "lex.l"
BEGIN(CPP_COMMENT);
YY_BREAK
case 8:
# line 53 "lex.l"
{ return *yytext; }
YY_BREAK
case 9:
# line 54 "lex.l"
{ return *yytext; }
YY_BREAK
case 10:
# line 55 "lex.l"
{ return *yytext; }
YY_BREAK
case 11:
# line 56 "lex.l"
{ return *yytext; }
YY_BREAK
case 12:
# line 57 "lex.l"
{ return *yytext; }
YY_BREAK
case 13:
# line 58 "lex.l"
{ return *yytext; }
YY_BREAK
case 14:
# line 59 "lex.l"
{ return *yytext; }
YY_BREAK
case 15:
# line 60 "lex.l"
{ return *yytext; }
YY_BREAK
case 16:
# line 61 "lex.l"
{ return *yytext; }
YY_BREAK
case 17:
# line 62 "lex.l"
{ return *yytext; }
YY_BREAK
case 18:
# line 63 "lex.l"
{ return *yytext; }
YY_BREAK
case 19:
# line 64 "lex.l"
{ return *yytext; }
YY_BREAK
case 20:
# line 65 "lex.l"
{ return *yytext; }
YY_BREAK
case 21:
# line 66 "lex.l"
{ return *yytext; }
YY_BREAK
case 22:
# line 67 "lex.l"
{ return *yytext; }
YY_BREAK
case 23:
# line 68 "lex.l"
{ return *yytext; }
YY_BREAK
case 24:
# line 69 "lex.l"
{ return *yytext; }
YY_BREAK
case 25:
# line 70 "lex.l"
{ return *yytext; }
YY_BREAK
case 26:
# line 71 "lex.l"
{ return *yytext; }
YY_BREAK
case 27:
# line 72 "lex.l"
{ return *yytext; }
YY_BREAK
case 28:
# line 73 "lex.l"
{ return *yytext; }
YY_BREAK
case 29:
# line 74 "lex.l"
{ return *yytext; }
YY_BREAK
case 30:
# line 75 "lex.l"
{ return *yytext; }
YY_BREAK
case 31:
# line 77 "lex.l"
{ return tSCOPE; }
YY_BREAK
case 32:
# line 78 "lex.l"
{ return tPOW; }
YY_BREAK
case 33:
# line 79 "lex.l"
{ return tAND; }
YY_BREAK
case 34:
# line 80 "lex.l"
{ return tOR; }
YY_BREAK
case 35:
# line 81 "lex.l"
{ return tEQ; }
YY_BREAK
case 36:
# line 82 "lex.l"
{ return tNEQ; }
YY_BREAK
case 37:
# line 83 "lex.l"
{ return tGEQ; }
YY_BREAK
case 38:
# line 84 "lex.l"
{ return tLEQ; }
YY_BREAK
case 39:
# line 85 "lex.l"
{ return *yytext; }
YY_BREAK
case 40:
# line 86 "lex.l"
{ return *yytext; }
YY_BREAK
case 41:
# line 87 "lex.l"
{ return tARROW; }
YY_BREAK
case 42:
# line 89 "lex.l"
{ return tSIN; }
YY_BREAK
case 43:
# line 90 "lex.l"
{ return tCOS; }
YY_BREAK
case 44:
# line 91 "lex.l"
{ return tTAN; }
YY_BREAK
case 45:
# line 92 "lex.l"
{ return tASIN; }
YY_BREAK
case 46:
# line 93 "lex.l"
{ return tACOS; }
YY_BREAK
case 47:
# line 94 "lex.l"
{ return tATAN; }
YY_BREAK
case 48:
# line 95 "lex.l"
{ return tABS; }
YY_BREAK
case 49:
# line 96 "lex.l"
{ return tSQRT; }
YY_BREAK
case 50:
# line 97 "lex.l"
{ return tEXP; }
YY_BREAK
case 51:
# line 98 "lex.l"
{ return tLOG; }
YY_BREAK
case 52:
# line 99 "lex.l"
{ return tLOG10; }
YY_BREAK
case 53:
# line 100 "lex.l"
{ return tRAND; }
YY_BREAK
case 54:
# line 101 "lex.l"
{ return tGAUSS; }
YY_BREAK
case 55:
# line 102 "lex.l"
{ return tIF; }
YY_BREAK
case 56:
# line 104 "lex.l"
{ yylval.value = new Value(M_PI); return tVALUE; }
YY_BREAK
case 57:
# line 105 "lex.l"
{ yylval.value = new Value(M_PI_2); return tVALUE; }
YY_BREAK
case 58:
# line 106 "lex.l"
{ yylval.value = new Value(M_PI_4); return tVALUE; }
YY_BREAK
case 59:
# line 107 "lex.l"
{ yylval.value = new Value(M_E); return tVALUE; }
YY_BREAK
case 60:
# line 108 "lex.l"
{ yylval.value = new Value(M_SQRT2); return tVALUE; }
YY_BREAK
case 61:
# line 109 "lex.l"
{ yylval.value = new Value(M_LN2); return tVALUE; }
YY_BREAK
case 62:
# line 110 "lex.l"
{ yylval.value = new Value(M_LN10); return tVALUE; }
YY_BREAK
case 63:
# line 111 "lex.l"
{ yylval.value = new Value(1.0); return tVALUE; }
YY_BREAK
case 64:
# line 112 "lex.l"
{ yylval.value = new Value(0.0); return tVALUE; }
YY_BREAK
case 65:
# line 113 "lex.l"
{ return tTURTLEX; }
YY_BREAK
case 66:
# line 114 "lex.l"
{ return tTURTLEY; }
YY_BREAK
case 67:
# line 115 "lex.l"
{ return tTURTLEZ; }
YY_BREAK
case 68:
# line 117 "lex.l"
{ return tINFINITY; }
YY_BREAK
case 69:
# line 119 "lex.l"
{ return tLSYSTEM; }
YY_BREAK
case 70:
# line 120 "lex.l"
{ return tTABLE; }
YY_BREAK
case 71:
# line 121 "lex.l"
{ return tCONST; }
YY_BREAK
case 72:
# line 122 "lex.l"
{ return tATTRIBUTES; }
YY_BREAK
case 73:
# line 123 "lex.l"
{ return tDERIVATION; }
YY_BREAK
case 74:
# line 124 "lex.l"
{ return tAXIOM; }
YY_BREAK
case 75:
# line 125 "lex.l"
{ return tPITCH; }
YY_BREAK
case 76:
# line 126 "lex.l"
{ return tROLL; }
YY_BREAK
case 77:
# line 127 "lex.l"
{ return tTURN; }
YY_BREAK
case 78:
# line 128 "lex.l"
{ return tANGLE; }
YY_BREAK
case 79:
# line 129 "lex.l"
{ return tFORWARD; }
YY_BREAK
case 80:
# line 130 "lex.l"
{ return tRANDOMIZE; }
YY_BREAK
case 81:
# line 131 "lex.l"
{ return tTROPISM; }
YY_BREAK
case 82:
# line 132 "lex.l"
{ return tWEIGHT; }
YY_BREAK
case 83:
# line 133 "lex.l"
{ return tEYE; }
YY_BREAK
case 84:
# line 134 "lex.l"
{ return tLOOKAT; }
YY_BREAK
case 85:
# line 135 "lex.l"
{ return tUP; }
YY_BREAK
case 86:
# line 136 "lex.l"
{ return tFOV; }
YY_BREAK
case 87:
# line 138 "lex.l"
{ return tHULL; }
YY_BREAK
case 88:
# line 139 "lex.l"
{ return tSPHERE; }
YY_BREAK
case 89:
# line 140 "lex.l"
{ return tTRIANGLE; }
YY_BREAK
case 90:
# line 141 "lex.l"
{ return tPLANE; }
YY_BREAK
case 91:
# line 142 "lex.l"
{ return tCYLINDER; }
YY_BREAK
case 92:
# line 143 "lex.l"
{ return tCONE; }
YY_BREAK
case 93:
# line 144 "lex.l"
{ return tCONERES; }
YY_BREAK
case 94:
# line 145 "lex.l"
{ return tSPHERERES;}
YY_BREAK
case 95:
# line 147 "lex.l"
{ return tTRANSLATE; }
YY_BREAK
case 96:
# line 148 "lex.l"
{ return tSCALE; }
YY_BREAK
case 97:
# line 149 "lex.l"
{ return tROTATE; }
YY_BREAK
case 98:
# line 150 "lex.l"
{ return tTRANSFORM; }
YY_BREAK
case 99:
# line 152 "lex.l"
{
yylval.name = new rcString(yytext);
return tCONSTANT;
}
YY_BREAK
case 100:
# line 157 "lex.l"
{ yylval.name = new rcString(yytext);
return tNAME;
}
YY_BREAK
case 101:
# line 161 "lex.l"
{ rcString str(yytext);
yylval.value = new Value(str(1, str.length()-1));
return tVALUE;
}
YY_BREAK
case 102:
# line 167 "lex.l"
case 103:
# line 168 "lex.l"
case 104:
# line 168 "lex.l"
{
yylval.value = new Value(atof(yytext));
return tVALUE;
}
YY_BREAK
case 105:
# line 173 "lex.l"
;
YY_BREAK
case 106:
# line 175 "lex.l"
lineno++;
YY_BREAK
case 107:
# line 177 "lex.l"
{ // eat the bad characters
cerr << "[WARNING] : '" << *yytext
<< "' is a bad character found at line "
<< lineno << "\n";
}
YY_BREAK
case 108:
# line 184 "lex.l"
BEGIN(0);
YY_BREAK
case 109:
# line 185 "lex.l"
{
yyerror("Found '/*' while looking for '*/'");
BEGIN(0);
}
YY_BREAK
case 110:
# line 189 "lex.l"
lineno++;
YY_BREAK
case 111:
# line 190 "lex.l"
;
YY_BREAK
case YY_STATE_EOF(C_COMMENT):
# line 191 "lex.l"
{
yyerror("EOF while looking for '*/'");
BEGIN(0);
}
YY_BREAK
case 113:
# line 196 "lex.l"
{
lineno++;
BEGIN(0);
}
YY_BREAK
case 114:
# line 200 "lex.l"
;
YY_BREAK
case YY_STATE_EOF(CPP_COMMENT):
# line 201 "lex.l"
{
yyerror("Unexpected EOF");
BEGIN(0);
}
YY_BREAK
case 116:
# line 205 "lex.l"
ECHO;
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(EXTFILE):
yyterminate();
case YY_END_OF_BUFFER:
{
/* amount of text matched not including the EOB char */
int yy_amount_of_matched_text = yy_cp - yytext - 1;
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
/* note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the end-
* of-buffer state). Contrast this with the test in yyinput().
*/
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* this was really a NUL */
{
yy_state_type yy_next_state;
yy_c_buf_p = yytext + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
/* okay, we're now positioned to make the
* NUL transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we
* don't want to build jamming into it because
* then it will run more slowly)
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext + YY_MORE_ADJ;
if ( yy_next_state )
{
/* consume the NUL */
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
/* note: because we've taken care in
* yy_get_next_buffer() to have set up yytext,
* we can now set up yy_c_buf_p so that if some
* total hoser (like flex itself) wants
* to call the scanner after we return the
* YY_NULL, it'll still work - another YY_NULL
* will get returned.
*/
yy_c_buf_p = yytext + YY_MORE_ADJ;
yy_act = YY_STATE_EOF((yy_start - 1) / 2);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
}
break;
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
#ifdef FLEX_DEBUG
printf( "action # %d\n", yy_act );
#endif
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
}
}
}
/* yy_get_next_buffer - try to read in a new buffer
*
* synopsis
* int yy_get_next_buffer();
*
* returns a code representing an action
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
static int yy_get_next_buffer()
{
register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
register int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
/* try to read more data */
/* first move last chars to start of buffer */
number_to_move = yy_c_buf_p - yytext;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
yy_n_chars = 0;
else
{
int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
else if ( num_to_read <= 0 )
YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
/* read in more data */
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
}
if ( yy_n_chars == 0 )
{
if ( number_to_move == 1 )
{
ret_val = EOB_ACT_END_OF_FILE;
yy_current_buffer->yy_eof_status = EOF_DONE;
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_eof_status = EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
yy_n_chars += number_to_move;
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
/* yytext begins at the second character in yy_ch_buf; the first
* character is the one which preceded it before reading in the latest
* buffer; it needs to be kept around in case it's a newline, so
* yy_get_previous_state() will have with '^' rules active
*/
yytext = &yy_current_buffer->yy_ch_buf[1];
return ( ret_val );
}
/* yy_get_previous_state - get the state just before the EOB char was reached
*
* synopsis
* yy_state_type yy_get_previous_state();
*/
static yy_state_type yy_get_previous_state()
{
register yy_state_type yy_current_state;
register YY_CHAR *yy_cp;
register YY_CHAR *yy_bp = yytext;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
++yy_current_state;
yy_state_ptr = yy_state_buf;
*yy_state_ptr++ = yy_current_state;
for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = yy_def[yy_current_state];
if ( yy_current_state >= 311 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
*yy_state_ptr++ = yy_current_state;
}
return ( yy_current_state );
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
register yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
register YY_CHAR yy_c = 1;
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = yy_def[yy_current_state];
if ( yy_current_state >= 311 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
*yy_state_ptr++ = yy_current_state;
yy_is_jam = (yy_current_state == 310);
return ( yy_is_jam ? 0 : yy_current_state );
}
#ifdef YY_USE_PROTOS
static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
#else
static void yyunput( c, yy_bp )
YY_CHAR c;
register YY_CHAR *yy_bp;
#endif
{
register YY_CHAR *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
register YY_CHAR *dest =
&yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
register YY_CHAR *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += dest - source;
yy_bp += dest - source;
yy_n_chars = yy_current_buffer->yy_buf_size;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
yy_cp[-2] = '\n';
*--yy_cp = c;
/* note: the formal parameter *must* be called "yy_bp" for this
* macro to now work correctly
*/
YY_DO_BEFORE_ACTION; /* set up yytext again */
}
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
{
int c;
YY_CHAR *yy_cp = yy_c_buf_p;
*yy_cp = yy_hold_char;
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* this was really a NUL */
*yy_c_buf_p = '\0';
else
{ /* need more input */
yytext = yy_c_buf_p;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
{
yy_c_buf_p = yytext + YY_MORE_ADJ;
return ( EOF );
}
YY_NEW_FILE;
#ifdef __cplusplus
return ( yyinput() );
#else
return ( input() );
#endif
}
break;
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext + YY_MORE_ADJ;
break;
case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
YY_FATAL_ERROR( "unexpected last match in yyinput()" );
#else
YY_FATAL_ERROR( "unexpected last match in input()" );
#endif
}
}
}
c = *yy_c_buf_p;
yy_hold_char = *++yy_c_buf_p;
return ( c );
}
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
{
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_buffer )
{
/* flush out information for old buffer */
*yy_c_buf_p = yy_hold_char;
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
yy_current_buffer->yy_n_chars = yy_n_chars;
}
yy_current_buffer = new_buffer;
yy_load_buffer_state();
/* we don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
yy_did_buffer_switch_on_eof = 1;
}
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
yyin = yy_current_buffer->yy_input_file;
yy_hold_char = *yy_c_buf_p;
}
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
yy_init_buffer( b, file );
return ( b );
}
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( b == yy_current_buffer )
yy_current_buffer = (YY_BUFFER_STATE) 0;
free( (char *) b->yy_ch_buf );
free( (char *) b );
}
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
{
b->yy_input_file = file;
/* we put in the '\n' and start reading from [1] so that an
* initial match-at-newline will be true.
*/
b->yy_ch_buf[0] = '\n';
b->yy_n_chars = 1;
/* we always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[1];
b->yy_eof_status = EOF_NOT_SEEN;
}
# line 205 "lex.l"