This repository has been archived by the owner on Jul 26, 2018. It is now read-only.
forked from whymirror/greg
-
Notifications
You must be signed in to change notification settings - Fork 30
/
greg.c
1654 lines (1480 loc) · 51.5 KB
/
greg.c
1
2
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* A recursive-descent parser generated by greg 0.4.5 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct _GREG;
#define YYRULECOUNT 39
# include "greg.h"
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <assert.h>
# if !_MSC_VER
# include <unistd.h>
# include <libgen.h>
# else
# include <io.h>
# include <fcntl.h>
# include "getopt.h"
# endif
typedef struct Header Header;
struct Header {
char *text;
Header *next;
};
FILE *input= 0;
int verboseFlag= 0;
static int lineNumber= 0;
static const char *fileName= 0;
static char *trailer= 0;
static Header *headers= 0;
void makeHeader(char *text);
void makeTrailer(char *text);
void yyerror(struct _GREG *, const char *message);
# define YY_INPUT(buf, result, max, D) \
{ \
int c= getc(input); \
if ('\n' == c || '\r' == c) ++lineNumber; \
result= (EOF == c) ? 0 : (*(buf)= c, 1); \
}
# define YY_LOCAL(T) static T
# define YY_RULE(T) static T
#ifndef YY_ALLOC
#define YY_ALLOC(N, D) malloc(N)
#endif
#ifndef YY_CALLOC
#define YY_CALLOC(N, S, D) calloc(N, S)
#endif
#ifndef YY_REALLOC
#define YY_REALLOC(B, N, D) realloc(B, N)
#endif
#ifndef YY_FREE
#define YY_FREE free
#endif
#ifndef YY_LOCAL
#define YY_LOCAL(T) static T
#endif
#ifndef YY_ACTION
#define YY_ACTION(T) static T
#endif
#ifndef YY_RULE
#define YY_RULE(T) static T
#endif
#ifndef YY_PARSE
#define YY_PARSE(T) T
#endif
#ifndef YY_NAME
#define YY_NAME(N) yy##N
#endif
#ifndef YY_INPUT
#define YY_INPUT(buf, result, max_size, D) \
{ \
int yyc= getchar(); \
result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \
yyprintf((stderr, "<%c>", yyc)); \
}
#endif
#ifndef YY_BEGIN
#define YY_BEGIN ( G->begin= G->pos, 1)
#endif
#ifndef YY_END
#define YY_END ( G->end= G->pos, 1)
#endif
#ifdef YY_DEBUG
# ifndef DEBUG_PARSE
# define DEBUG_PARSE 1
# endif
# ifndef DEBUG_VERBOSE
# define DEBUG_VERBOSE 2
# endif
# define yyprintf(args) if (G->debug & DEBUG_PARSE) fprintf args
# define yyprintfv(args) if (G->debug == (DEBUG_PARSE|DEBUG_VERBOSE)) fprintf args
# define yyprintfGcontext if (G->debug & DEBUG_PARSE) yyprintcontext(stderr,G->buf+G->pos)
# define yyprintfvGcontext if (G->debug == (DEBUG_PARSE|DEBUG_VERBOSE)) yyprintcontext(stderr,G->buf+G->pos)
# define yyprintfvTcontext(text) if (G->debug == (DEBUG_PARSE|DEBUG_VERBOSE)) yyprintcontext(stderr,text)
#else
# define yyprintf(args)
# define yyprintfv(args)
# define yyprintfGcontext
# define yyprintfvGcontext
# define yyprintfvTcontext(text)
#endif
#ifndef YYSTYPE
#define YYSTYPE int
#endif
#ifndef YY_XTYPE
#define YY_XTYPE void *
#endif
#ifndef YY_XVAR
#define YY_XVAR yyxvar
#endif
#ifndef YY_STACK_SIZE
#define YY_STACK_SIZE 128
#endif
#ifndef YY_BUFFER_START_SIZE
#define YY_BUFFER_START_SIZE 1024
#endif
#ifndef YY_PART
#define yydata G->data
#define yy G->ss
struct _yythunk; /* forward declaration */
typedef void (*yyaction)(struct _GREG *G, char *yytext, int yyleng, struct _yythunk *thunkpos, YY_XTYPE YY_XVAR);
typedef struct _yythunk { int begin, end; yyaction action; const char *name; struct _yythunk *next; } yythunk;
typedef struct _GREG {
char *buf;
int buflen;
int offset;
int pos;
int limit;
char *text;
int textlen;
int begin;
int end;
yythunk *thunks;
int thunkslen;
int thunkpos;
YYSTYPE ss;
YYSTYPE *val;
YYSTYPE *vals;
int valslen;
YY_XTYPE data;
#ifdef YY_DEBUG
int debug;
#endif
} GREG;
YY_LOCAL(int) yyrefill(GREG *G)
{
int yyn;
while (G->buflen - G->pos < 512)
{
G->buflen *= 2;
G->buf= (char*)YY_REALLOC(G->buf, G->buflen, G->data);
}
YY_INPUT((G->buf + G->pos), yyn, (G->buflen - G->pos), G->data);
if (!yyn) return 0;
G->limit += yyn;
return 1;
}
YY_LOCAL(int) yymatchDot(GREG *G)
{
if (G->pos >= G->limit && !yyrefill(G)) return 0;
++G->pos;
return 1;
}
#ifdef YY_DEBUG
YY_LOCAL(void) yyprintcontext(FILE *stream, char *s)
{
char *context = s;
char *nl = strchr(context, 10);
if (nl) {
context = (char*)malloc(nl-s+1);
strncpy(context, s, nl-s);
context[nl-s] = '\0'; /* replace nl by 0 */
}
fprintf(stream, " @ \"%s\"", context);
if (nl) free(context);
}
#endif
YY_LOCAL(int) yymatchChar(GREG *G, int c)
{
if (G->pos >= G->limit && !yyrefill(G)) return 0;
if ((unsigned char)G->buf[G->pos] == c)
{
++G->pos;
if (c<32) { yyprintf((stderr, " ok yymatchChar '0x%x'", c));}
else { yyprintf((stderr, " ok yymatchChar '%c'", c));}
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
}
if (c<32) { yyprintfv((stderr, " fail yymatchChar '0x%x'", c));}
else { yyprintfv((stderr, " fail yymatchChar '%c'", c));}
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_LOCAL(int) yymatchString(GREG *G, const char *s)
{
int yysav= G->pos;
while (*s)
{
if (G->pos >= G->limit && !yyrefill(G)) return 0;
if (G->buf[G->pos] != *s)
{
G->pos= yysav;
return 0;
}
++s;
++G->pos;
}
return 1;
}
YY_LOCAL(int) yymatchClass(GREG *G, const unsigned char *bits, const char *cclass)
{
int c;
if (G->pos >= G->limit && !yyrefill(G)) return 0;
c= (unsigned char)G->buf[G->pos];
if (bits[c >> 3] & (1 << (c & 7)))
{
++G->pos;
yyprintf((stderr, " ok yymatchClass [%s]", cclass));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
}
yyprintfv((stderr, " fail yymatchClass [%s]", cclass));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_LOCAL(void) yyDo(GREG *G, yyaction action, int begin, int end, const char *name)
{
while (G->thunkpos >= G->thunkslen)
{
G->thunkslen *= 2;
G->thunks= (yythunk*)YY_REALLOC(G->thunks, sizeof(yythunk) * G->thunkslen, G->data);
}
G->thunks[G->thunkpos].begin= begin;
G->thunks[G->thunkpos].end= end;
G->thunks[G->thunkpos].action= action;
G->thunks[G->thunkpos].name= name;
++G->thunkpos;
}
YY_LOCAL(int) yyText(GREG *G, int begin, int end)
{
int yyleng= end - begin;
if (yyleng <= 0)
yyleng= 0;
else
{
while (G->textlen < (yyleng + 1))
{
G->textlen *= 2;
G->text= (char*)YY_REALLOC(G->text, G->textlen, G->data);
}
memcpy(G->text, G->buf + begin, yyleng);
}
G->text[yyleng]= '\0';
return yyleng;
}
YY_LOCAL(void) yyDone(GREG *G)
{
int pos;
for (pos= 0; pos < G->thunkpos; ++pos)
{
yythunk *thunk= &G->thunks[pos];
int yyleng= thunk->end ? yyText(G, thunk->begin, thunk->end) : thunk->begin;
yyprintf((stderr, "DO [%d] %s", pos, thunk->name));
yyprintfvTcontext(G->text);
yyprintf((stderr, "\n"));
thunk->action(G, G->text, yyleng, thunk, G->data);
}
G->thunkpos= 0;
}
YY_LOCAL(void) yyCommit(GREG *G)
{
if ((G->limit -= G->pos))
{
memmove(G->buf, G->buf + G->pos, G->limit);
}
G->offset += G->pos;
G->begin -= G->pos;
G->end -= G->pos;
G->pos= G->thunkpos= 0;
}
YY_LOCAL(int) yyAccept(GREG *G, int tp0)
{
if (tp0)
{
fprintf(stderr, "accept denied at %d\n", tp0);
return 0;
}
else
{
yyDone(G);
yyCommit(G);
}
return 1;
}
YY_LOCAL(void) yyPush(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) {
size_t off = (G->val - G->vals) + count;
if (off > G->valslen) {
while (G->valslen < off + 1)
G->valslen *= 2;
G->vals= (YYSTYPE*)YY_REALLOC((void *)G->vals, sizeof(YYSTYPE) * G->valslen, G->data);
G->val= G->vals + off;
} else {
G->val += count;
}
}
YY_LOCAL(void) yyPop(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val -= count; }
YY_LOCAL(void) yySet(GREG *G, char *text, int count, yythunk *thunk, YY_XTYPE YY_XVAR) { G->val[count]= G->ss; }
#endif /* YY_PART */
#define YYACCEPT yyAccept(G, yythunkpos0)
YY_RULE(int) yy_till_end_of_line(GREG *G); /* 39 */
YY_RULE(int) yy_end_of_line(GREG *G); /* 38 */
YY_RULE(int) yy_quoted_comment(GREG *G); /* 37 */
YY_RULE(int) yy_single_line_comment(GREG *G); /* 36 */
YY_RULE(int) yy_space(GREG *G); /* 35 */
YY_RULE(int) yy_braces(GREG *G); /* 34 */
YY_RULE(int) yy_range(GREG *G); /* 33 */
YY_RULE(int) yy_char(GREG *G); /* 32 */
YY_RULE(int) yy_errblock(GREG *G); /* 31 */
YY_RULE(int) yy_END(GREG *G); /* 30 */
YY_RULE(int) yy_BEGIN(GREG *G); /* 29 */
YY_RULE(int) yy_DOT(GREG *G); /* 28 */
YY_RULE(int) yy_class(GREG *G); /* 27 */
YY_RULE(int) yy_literal(GREG *G); /* 26 */
YY_RULE(int) yy_CLOSE(GREG *G); /* 25 */
YY_RULE(int) yy_OPEN(GREG *G); /* 24 */
YY_RULE(int) yy_COLON(GREG *G); /* 23 */
YY_RULE(int) yy_PLUS(GREG *G); /* 22 */
YY_RULE(int) yy_STAR(GREG *G); /* 21 */
YY_RULE(int) yy_QUESTION(GREG *G); /* 20 */
YY_RULE(int) yy_primary(GREG *G); /* 19 */
YY_RULE(int) yy_NOT(GREG *G); /* 18 */
YY_RULE(int) yy_suffix(GREG *G); /* 17 */
YY_RULE(int) yy_action(GREG *G); /* 16 */
YY_RULE(int) yy_AND(GREG *G); /* 15 */
YY_RULE(int) yy_prefix(GREG *G); /* 14 */
YY_RULE(int) yy_BAR(GREG *G); /* 13 */
YY_RULE(int) yy_sequence(GREG *G); /* 12 */
YY_RULE(int) yy_SEMICOLON(GREG *G); /* 11 */
YY_RULE(int) yy_expression(GREG *G); /* 10 */
YY_RULE(int) yy_EQUAL(GREG *G); /* 9 */
YY_RULE(int) yy_identifier(GREG *G); /* 8 */
YY_RULE(int) yy_RPERCENT(GREG *G); /* 7 */
YY_RULE(int) yy_end_of_file(GREG *G); /* 6 */
YY_RULE(int) yy_trailer(GREG *G); /* 5 */
YY_RULE(int) yy_definition(GREG *G); /* 4 */
YY_RULE(int) yy_declaration(GREG *G); /* 3 */
YY_RULE(int) yy__(GREG *G); /* 2 */
YY_RULE(int) yy_grammar(GREG *G); /* 1 */
YY_ACTION(void) yy_10_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_10_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {Node *node = pop(); ((struct Any *) node)->errblock = strdup(yytext); push(node); }\n"));
Node *node = pop(); ((struct Any *) node)->errblock = strdup(yytext); push(node); ;
}
YY_ACTION(void) yy_9_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_9_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makePredicate(\"YY_END\")); }\n"));
push(makePredicate("YY_END")); ;
}
YY_ACTION(void) yy_8_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_8_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makePredicate(\"YY_BEGIN\")); }\n"));
push(makePredicate("YY_BEGIN")); ;
}
YY_ACTION(void) yy_7_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_7_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeAction(yytext)); }\n"));
push(makeAction(yytext)); ;
}
YY_ACTION(void) yy_6_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_6_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeDot()); }\n"));
push(makeDot()); ;
}
YY_ACTION(void) yy_5_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_5_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeClass(yytext)); }\n"));
push(makeClass(yytext)); ;
}
YY_ACTION(void) yy_4_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_4_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeString(yytext)); }\n"));
push(makeString(yytext)); ;
}
YY_ACTION(void) yy_3_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_3_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeName(findRule(yytext,0))); }\n"));
push(makeName(findRule(yytext,0))); ;
}
YY_ACTION(void) yy_2_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_2_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {Node *name= makeName(findRule(yytext,0)); name->name.variable= pop(); push(name); }\n"));
Node *name= makeName(findRule(yytext,0)); name->name.variable= pop(); push(name); ;
}
YY_ACTION(void) yy_1_primary(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_primary"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeVariable(yytext)); }\n"));
push(makeVariable(yytext)); ;
}
YY_ACTION(void) yy_3_suffix(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_3_suffix"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makePlus (pop())); }\n"));
push(makePlus (pop())); ;
}
YY_ACTION(void) yy_2_suffix(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_2_suffix"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeStar (pop())); }\n"));
push(makeStar (pop())); ;
}
YY_ACTION(void) yy_1_suffix(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_suffix"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makeQuery(pop())); }\n"));
push(makeQuery(pop())); ;
}
YY_ACTION(void) yy_3_prefix(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_3_prefix"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makePeekNot(pop())); }\n"));
push(makePeekNot(pop())); ;
}
YY_ACTION(void) yy_2_prefix(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_2_prefix"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makePeekFor(pop())); }\n"));
push(makePeekFor(pop())); ;
}
YY_ACTION(void) yy_1_prefix(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_prefix"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {push(makePredicate(yytext)); }\n"));
push(makePredicate(yytext)); ;
}
YY_ACTION(void) yy_1_sequence(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_sequence"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {Node *f= pop(); push(Sequence_append(pop(), f)); }\n"));
Node *f= pop(); push(Sequence_append(pop(), f)); ;
}
YY_ACTION(void) yy_1_expression(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_expression"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {Node *f= pop(); push(Alternate_append(pop(), f)); }\n"));
Node *f= pop(); push(Alternate_append(pop(), f)); ;
}
YY_ACTION(void) yy_2_definition(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_2_definition"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {Node *e= pop(); Rule_setExpression(pop(), e); }\n"));
Node *e= pop(); Rule_setExpression(pop(), e); ;
#undef s
}
YY_ACTION(void) yy_1_definition(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
#define s G->val[-1]
yyprintf((stderr, "do yy_1_definition"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {if (push(beginRule(findRule(yytext,1)))->rule.expression)\n\
\t\t\t\t\t\t\t fprintf(stderr, \"rule '%%s' redefined\\n\", yytext); }\n"));
if (push(beginRule(findRule(yytext,1)))->rule.expression)
fprintf(stderr, "rule '%s' redefined\n", yytext); ;
#undef s
}
YY_ACTION(void) yy_1_trailer(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_trailer"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {makeTrailer(yytext); }\n"));
makeTrailer(yytext); ;
}
YY_ACTION(void) yy_1_declaration(GREG *G, char *yytext, int yyleng, yythunk *thunk, YY_XTYPE YY_XVAR)
{
yyprintf((stderr, "do yy_1_declaration"));
yyprintfvTcontext(yytext);
yyprintf((stderr, "\n {makeHeader(yytext); }\n"));
makeHeader(yytext); ;
}
YY_RULE(int) yy_till_end_of_line(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "till_end_of_line"));
l2:;
{ int yypos3= G->pos, yythunkpos3= G->thunkpos;
{ int yypos4= G->pos, yythunkpos4= G->thunkpos; if (!yy_end_of_line(G)) goto l4;
goto l3;
l4:; G->pos= yypos4; G->thunkpos= yythunkpos4;
} if (!yymatchDot(G)) goto l3; goto l2;
l3:; G->pos= yypos3; G->thunkpos= yythunkpos3;
} if (!yy_end_of_line(G)) goto l1;
yyprintf((stderr, " ok till_end_of_line"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l1:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "till_end_of_line"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_end_of_line(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "end_of_line"));
{ int yypos6= G->pos, yythunkpos6= G->thunkpos; if (!yymatchString(G, "\r\n")) goto l7;
goto l6;
l7:; G->pos= yypos6; G->thunkpos= yythunkpos6; if (!yymatchChar(G, '\n')) goto l8;
goto l6;
l8:; G->pos= yypos6; G->thunkpos= yythunkpos6; if (!yymatchChar(G, '\r')) goto l5;
}
l6:; yyprintf((stderr, " ok end_of_line"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l5:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "end_of_line"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_quoted_comment(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "quoted_comment"));
if (!yymatchString(G, "/*")) goto l9;
l10:;
{ int yypos11= G->pos, yythunkpos11= G->thunkpos;
{ int yypos12= G->pos, yythunkpos12= G->thunkpos; if (!yymatchString(G, "*/")) goto l12;
goto l11;
l12:; G->pos= yypos12; G->thunkpos= yythunkpos12;
} if (!yymatchDot(G)) goto l11; goto l10;
l11:; G->pos= yypos11; G->thunkpos= yythunkpos11;
} if (!yymatchString(G, "*/")) goto l9;
yyprintf((stderr, " ok quoted_comment"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l9:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "quoted_comment"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_single_line_comment(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "single_line_comment"));
{ int yypos14= G->pos, yythunkpos14= G->thunkpos; if (!yymatchChar(G, '#')) goto l15;
goto l14;
l15:; G->pos= yypos14; G->thunkpos= yythunkpos14; if (!yymatchString(G, "//")) goto l13;
}
l14:; if (!yy_till_end_of_line(G)) goto l13;
yyprintf((stderr, " ok single_line_comment"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l13:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "single_line_comment"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_space(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "space"));
{ int yypos17= G->pos, yythunkpos17= G->thunkpos; if (!yymatchChar(G, ' ')) goto l18;
goto l17;
l18:; G->pos= yypos17; G->thunkpos= yythunkpos17; if (!yymatchChar(G, '\t')) goto l19;
goto l17;
l19:; G->pos= yypos17; G->thunkpos= yythunkpos17; if (!yy_end_of_line(G)) goto l16;
}
l17:; yyprintf((stderr, " ok space"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l16:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "space"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_braces(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "braces"));
{ int yypos21= G->pos, yythunkpos21= G->thunkpos; if (!yymatchChar(G, '{')) goto l22;
l23:;
{ int yypos24= G->pos, yythunkpos24= G->thunkpos;
{ int yypos25= G->pos, yythunkpos25= G->thunkpos; if (!yymatchChar(G, '}')) goto l25;
goto l24;
l25:; G->pos= yypos25; G->thunkpos= yythunkpos25;
} if (!yymatchDot(G)) goto l24; goto l23;
l24:; G->pos= yypos24; G->thunkpos= yythunkpos24;
} if (!yymatchChar(G, '}')) goto l22;
goto l21;
l22:; G->pos= yypos21; G->thunkpos= yythunkpos21;
{ int yypos26= G->pos, yythunkpos26= G->thunkpos; if (!yymatchChar(G, '}')) goto l26;
goto l20;
l26:; G->pos= yypos26; G->thunkpos= yythunkpos26;
} if (!yymatchDot(G)) goto l20;
}
l21:; yyprintf((stderr, " ok braces"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l20:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "braces"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_range(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "range"));
{ int yypos28= G->pos, yythunkpos28= G->thunkpos; if (!yy_char(G)) goto l29;
if (!yymatchChar(G, '-')) goto l29;
if (!yy_char(G)) goto l29;
goto l28;
l29:; G->pos= yypos28; G->thunkpos= yythunkpos28; if (!yy_char(G)) goto l27;
}
l28:; yyprintf((stderr, " ok range"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l27:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "range"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_char(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "char"));
{ int yypos31= G->pos, yythunkpos31= G->thunkpos; if (!yymatchChar(G, '\\')) goto l32;
if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\204\000\000\000\000\000\000\070\146\100\124\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "abefnrtv'\"\\[\\]\\\\")) goto l32;
goto l31;
l32:; G->pos= yypos31; G->thunkpos= yythunkpos31; if (!yymatchChar(G, '\\')) goto l33;
if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\000\000\017\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "0-3")) goto l33;
if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\000\000\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "0-7")) goto l33;
if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\000\000\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "0-7")) goto l33;
goto l31;
l33:; G->pos= yypos31; G->thunkpos= yythunkpos31; if (!yymatchChar(G, '\\')) goto l34;
if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\000\000\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "0-7")) goto l34;
{ int yypos35= G->pos, yythunkpos35= G->thunkpos; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\000\000\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "0-7")) goto l35;
goto l36;
l35:; G->pos= yypos35; G->thunkpos= yythunkpos35;
}
l36:; goto l31;
l34:; G->pos= yypos31; G->thunkpos= yythunkpos31;
{ int yypos37= G->pos, yythunkpos37= G->thunkpos; if (!yymatchChar(G, '\\')) goto l37;
goto l30;
l37:; G->pos= yypos37; G->thunkpos= yythunkpos37;
} if (!yymatchDot(G)) goto l30;
}
l31:; yyprintf((stderr, " ok char"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l30:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "char"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_errblock(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "errblock"));
if (!yymatchString(G, "~{")) goto l38;
yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l38;
l39:;
{ int yypos40= G->pos, yythunkpos40= G->thunkpos; if (!yy_braces(G)) goto l40;
goto l39;
l40:; G->pos= yypos40; G->thunkpos= yythunkpos40;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l38; if (!yymatchChar(G, '}')) goto l38;
if (!yy__(G)) goto l38;
yyprintf((stderr, " ok errblock"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l38:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "errblock"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_END(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "END"));
if (!yymatchChar(G, '>')) goto l41;
if (!yy__(G)) goto l41;
yyprintf((stderr, " ok END"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l41:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "END"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_BEGIN(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "BEGIN"));
if (!yymatchChar(G, '<')) goto l42;
if (!yy__(G)) goto l42;
yyprintf((stderr, " ok BEGIN"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l42:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "BEGIN"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_DOT(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "DOT"));
if (!yymatchChar(G, '.')) goto l43;
if (!yy__(G)) goto l43;
yyprintf((stderr, " ok DOT"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l43:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "DOT"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_class(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "class"));
if (!yymatchChar(G, '[')) goto l44;
yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l44;
l45:;
{ int yypos46= G->pos, yythunkpos46= G->thunkpos;
{ int yypos47= G->pos, yythunkpos47= G->thunkpos; if (!yymatchChar(G, ']')) goto l47;
goto l46;
l47:; G->pos= yypos47; G->thunkpos= yythunkpos47;
} if (!yy_range(G)) goto l46;
goto l45;
l46:; G->pos= yypos46; G->thunkpos= yythunkpos46;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l44; if (!yymatchChar(G, ']')) goto l44;
if (!yy__(G)) goto l44;
yyprintf((stderr, " ok class"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l44:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "class"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_literal(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "literal"));
{ int yypos49= G->pos, yythunkpos49= G->thunkpos; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "'")) goto l50;
yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l50;
l51:;
{ int yypos52= G->pos, yythunkpos52= G->thunkpos;
{ int yypos53= G->pos, yythunkpos53= G->thunkpos; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "'")) goto l53;
goto l52;
l53:; G->pos= yypos53; G->thunkpos= yythunkpos53;
} if (!yy_char(G)) goto l52;
goto l51;
l52:; G->pos= yypos52; G->thunkpos= yythunkpos52;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l50; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "'")) goto l50;
if (!yy__(G)) goto l50;
goto l49;
l50:; G->pos= yypos49; G->thunkpos= yythunkpos49; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "\"")) goto l48;
yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l48;
l54:;
{ int yypos55= G->pos, yythunkpos55= G->thunkpos;
{ int yypos56= G->pos, yythunkpos56= G->thunkpos; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "\"")) goto l56;
goto l55;
l56:; G->pos= yypos56; G->thunkpos= yythunkpos56;
} if (!yy_char(G)) goto l55;
goto l54;
l55:; G->pos= yypos55; G->thunkpos= yythunkpos55;
} yyText(G, G->begin, G->end); if (!(YY_END)) goto l48; if (!yymatchClass(G, (const unsigned char *)"\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", "\"")) goto l48;
if (!yy__(G)) goto l48;
}
l49:; yyprintf((stderr, " ok literal"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l48:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "literal"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_CLOSE(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "CLOSE"));
if (!yymatchChar(G, ')')) goto l57;
if (!yy__(G)) goto l57;
yyprintf((stderr, " ok CLOSE"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l57:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "CLOSE"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_OPEN(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "OPEN"));
if (!yymatchChar(G, '(')) goto l58;
if (!yy__(G)) goto l58;
yyprintf((stderr, " ok OPEN"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l58:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "OPEN"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_COLON(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "COLON"));
if (!yymatchChar(G, ':')) goto l59;
if (!yy__(G)) goto l59;
yyprintf((stderr, " ok COLON"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l59:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "COLON"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_PLUS(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "PLUS"));
if (!yymatchChar(G, '+')) goto l60;
if (!yy__(G)) goto l60;
yyprintf((stderr, " ok PLUS"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l60:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "PLUS"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_STAR(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "STAR"));
if (!yymatchChar(G, '*')) goto l61;
if (!yy__(G)) goto l61;
yyprintf((stderr, " ok STAR"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l61:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "STAR"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_QUESTION(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "QUESTION"));
if (!yymatchChar(G, '?')) goto l62;
if (!yy__(G)) goto l62;
yyprintf((stderr, " ok QUESTION"));
yyprintfGcontext;
yyprintf((stderr, "\n"));
return 1;
l62:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintfv((stderr, " fail %s", "QUESTION"));
yyprintfvGcontext;
yyprintfv((stderr, "\n"));
return 0;
}
YY_RULE(int) yy_primary(GREG *G)
{ int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintfv((stderr, "%s\n", "primary"));
{ int yypos64= G->pos, yythunkpos64= G->thunkpos; if (!yy_identifier(G)) goto l65;
yyDo(G, yy_1_primary, G->begin, G->end, "yy_1_primary");
if (!yy_COLON(G)) goto l65;
if (!yy_identifier(G)) goto l65;
{ int yypos66= G->pos, yythunkpos66= G->thunkpos; if (!yy_EQUAL(G)) goto l66;
goto l65;
l66:; G->pos= yypos66; G->thunkpos= yythunkpos66;
} yyDo(G, yy_2_primary, G->begin, G->end, "yy_2_primary");
goto l64;
l65:; G->pos= yypos64; G->thunkpos= yythunkpos64; if (!yy_identifier(G)) goto l67;
{ int yypos68= G->pos, yythunkpos68= G->thunkpos; if (!yy_EQUAL(G)) goto l68;
goto l67;
l68:; G->pos= yypos68; G->thunkpos= yythunkpos68;
} yyDo(G, yy_3_primary, G->begin, G->end, "yy_3_primary");
goto l64;
l67:; G->pos= yypos64; G->thunkpos= yythunkpos64; if (!yy_OPEN(G)) goto l69;
if (!yy_expression(G)) goto l69;
if (!yy_CLOSE(G)) goto l69;
goto l64;
l69:; G->pos= yypos64; G->thunkpos= yythunkpos64; if (!yy_literal(G)) goto l70;
yyDo(G, yy_4_primary, G->begin, G->end, "yy_4_primary");
goto l64;
l70:; G->pos= yypos64; G->thunkpos= yythunkpos64; if (!yy_class(G)) goto l71;
yyDo(G, yy_5_primary, G->begin, G->end, "yy_5_primary");
goto l64;
l71:; G->pos= yypos64; G->thunkpos= yythunkpos64; if (!yy_DOT(G)) goto l72;
yyDo(G, yy_6_primary, G->begin, G->end, "yy_6_primary");
goto l64;
l72:; G->pos= yypos64; G->thunkpos= yythunkpos64; if (!yy_action(G)) goto l73;
yyDo(G, yy_7_primary, G->begin, G->end, "yy_7_primary");
goto l64;