Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 26d6db79cc0d30937a19790b739b1850c88b765a (plain) (blame)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
/*******************************************************************************
* Copyright (c) 2006, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     IBM Corporation - initial API and implementation
*********************************************************************************/

// This file was generated by LPG

package org.eclipse.cdt.internal.core.dom.lrparser.gcc;

import lpg.lpgjavaruntime.*;

import java.util.*;
import org.eclipse.cdt.core.dom.ast.*;
import org.eclipse.cdt.core.dom.lrparser.IDOMTokenMap;
import org.eclipse.cdt.core.dom.lrparser.IParser;
import org.eclipse.cdt.core.dom.lrparser.ITokenCollector;
import org.eclipse.cdt.core.dom.lrparser.CPreprocessorAdapter;
import org.eclipse.cdt.core.dom.lrparser.action.ITokenStream;
import org.eclipse.cdt.core.dom.lrparser.lpgextensions.FixedBacktrackingParser;
import org.eclipse.cdt.core.dom.lrparser.action.ScopedStack;
import org.eclipse.cdt.core.parser.IScanner;
import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
import org.eclipse.cdt.core.index.IIndex;

import org.eclipse.cdt.internal.core.dom.parser.c.CNodeFactory;
import org.eclipse.cdt.core.dom.lrparser.action.c99.C99BuildASTParserAction;
import org.eclipse.cdt.core.dom.lrparser.action.c99.C99SecondaryParserFactory;

import org.eclipse.cdt.core.dom.lrparser.action.gnu.GNUBuildASTParserAction;

import org.eclipse.cdt.core.dom.lrparser.action.gnu.GCCBuildASTParserAction;
import org.eclipse.cdt.core.dom.lrparser.action.gnu.GCCSecondaryParserFactory;

public class GCCParser extends PrsStream implements RuleAction, ITokenStream, 
                                                       ITokenCollector, IParser< IASTTranslationUnit  > 
                                                           
{
    private static ParseTable prs = new GCCParserprs();
    private FixedBacktrackingParser btParser;

    public FixedBacktrackingParser getParser() { return btParser; }
    private void setResult(Object object) { btParser.setSym1(object); }
    public Object getRhsSym(int i) { return btParser.getSym(i); }

    public int getRhsTokenIndex(int i) { return btParser.getToken(i); }
    public IToken getRhsIToken(int i) { return super.getIToken(getRhsTokenIndex(i)); }
    
    public int getRhsFirstTokenIndex(int i) { return btParser.getFirstToken(i); }
    public IToken getRhsFirstIToken(int i) { return super.getIToken(getRhsFirstTokenIndex(i)); }

    public int getRhsLastTokenIndex(int i) { return btParser.getLastToken(i); }
    public IToken getRhsLastIToken(int i) { return super.getIToken(getRhsLastTokenIndex(i)); }

    public int getLeftSpan() { return btParser.getFirstToken(); }
    public IToken getLeftIToken()  { return super.getIToken(getLeftSpan()); }

    public int getRightSpan() { return btParser.getLastToken(); }
    public IToken getRightIToken() { return super.getIToken(getRightSpan()); }

    public int getRhsErrorTokenIndex(int i)
    {
        int index = btParser.getToken(i);
        IToken err = super.getIToken(index);
        return (err instanceof ErrorToken ? index : 0);
    }
    public ErrorToken getRhsErrorIToken(int i)
    {
        int index = btParser.getToken(i);
        IToken err = super.getIToken(index);
        return (ErrorToken) (err instanceof ErrorToken ? err : null);
    }

    public GCCParser(LexStream lexStream)
    {
        super(lexStream);

        try
        {
            super.remapTerminalSymbols(orderedTerminalSymbols(), GCCParserprs.EOFT_SYMBOL);
        }
        catch(NullExportedSymbolsException e) {
        }
        catch(NullTerminalSymbolsException e) {
        }
        catch(UnimplementedTerminalsException e)
        {
            java.util.ArrayList unimplemented_symbols = e.getSymbols();
            System.out.println("The Lexer will not scan the following token(s):");
            for (int i = 0; i < unimplemented_symbols.size(); i++)
            {
                Integer id = (Integer) unimplemented_symbols.get(i);
                System.out.println("    " + GCCParsersym.orderedTerminalSymbols[id.intValue()]);               
            }
            System.out.println();                        
        }
        catch(UndefinedEofSymbolException e)
        {
            throw new Error(new UndefinedEofSymbolException
                                ("The Lexer does not implement the Eof symbol " +
                                 GCCParsersym.orderedTerminalSymbols[GCCParserprs.EOFT_SYMBOL]));
        } 
    }

    public String[] orderedTerminalSymbols() { return GCCParsersym.orderedTerminalSymbols; }
    public String getTokenKindName(int kind) { return GCCParsersym.orderedTerminalSymbols[kind]; }
    public int getEOFTokenKind() { return GCCParserprs.EOFT_SYMBOL; }
    public PrsStream getParseStream() { return (PrsStream) this; }
    
    //
    // Report error message for given error_token.
    //
    public final void reportErrorTokenMessage(int error_token, String msg)
    {
        int firsttok = super.getFirstErrorToken(error_token),
            lasttok = super.getLastErrorToken(error_token);
        String location = super.getFileName() + ':' +
                          (firsttok > lasttok
                                    ? (super.getEndLine(lasttok) + ":" + super.getEndColumn(lasttok))
                                    : (super.getLine(error_token) + ":" +
                                       super.getColumn(error_token) + ":" +
                                       super.getEndLine(error_token) + ":" +
                                       super.getEndColumn(error_token)))
                          + ": ";
        super.reportError((firsttok > lasttok ? ParseErrorCodes.INSERTION_CODE : ParseErrorCodes.SUBSTITUTION_CODE), location, msg);
    }

    public void parser()
    {
        parser(null, 0);
    }
    
    public void parser(Monitor monitor)
    {
        parser(monitor, 0);
    }
    
    public void parser(int error_repair_count)
    {
        parser(null, error_repair_count);
    }

    public void parser(Monitor monitor, int error_repair_count)
    {
        try
        {
            btParser = new FixedBacktrackingParser(monitor, (TokenStream) this, prs, (RuleAction) this);
        }
        catch (NotBacktrackParseTableException e)
        {
            throw new Error(new NotBacktrackParseTableException
                                ("Regenerate GCCParserprs.java with -BACKTRACK option"));
        }
        catch (BadParseSymFileException e)
        {
            throw new Error(new BadParseSymFileException("Bad Parser Symbol File -- GCCParsersym.java"));
        }

        try
        {
            btParser.parse(error_repair_count);
        }
        catch (BadParseException e)
        {
            reset(e.error_token); // point to error token
            DiagnoseParser diagnoseParser = new DiagnoseParser(this, prs);
            diagnoseParser.diagnose(e.error_token);
        }
    }


private  GCCBuildASTParserAction  action;
private IASTCompletionNode compNode;


public GCCParser(IScanner scanner, IDOMTokenMap tokenMap, IBuiltinBindingsProvider builtinBindingsProvider, IIndex index, Set<IParser.Options> options) {
	initActions(options);
	action.initializeTranslationUnit(scanner, builtinBindingsProvider, index);
	CPreprocessorAdapter.runCPreprocessor(scanner, this, tokenMap);
}

private void initActions(Set<IParser.Options> options) {
	ScopedStack<Object> astStack = new ScopedStack<Object>();
	
	action = new  GCCBuildASTParserAction (this, astStack,  CNodeFactory.getDefault() ,  GCCSecondaryParserFactory.getDefault() );
	action.setParserOptions(options);
	
	

	gnuAction = new  GNUBuildASTParserAction  (this, astStack,  CNodeFactory.getDefault() );
	gnuAction.setParserOptions(options);
	//gnuAction.setBaseAction(action);

}


public void addToken(IToken token) {
	token.setKind(mapKind(token.getKind())); // TODO does mapKind need to be called?
	super.addToken(token);
}


public  IASTTranslationUnit   parse() {
	// this has to be done, or... kaboom!
	setStreamLength(getSize());
	
	final int errorRepairCount = -1;  // -1 means full error handling
	parser(null, errorRepairCount); // do the actual parse
	super.resetTokenStream(); // allow tokens to be garbage collected

	compNode = action.getASTCompletionNode(); // the completion node may be null
	return ( IASTTranslationUnit  ) action.getParseResult();
}


public IASTCompletionNode getCompletionNode() {
	return compNode;
}

// uncomment this method to use with backtracking parser
public List<IToken> getRuleTokens() {
    return getTokens().subList(getLeftSpan(), getRightSpan() + 1);
}

public String[] getOrderedTerminalSymbols() {
	return GCCParsersym.orderedTerminalSymbols;
}

@SuppressWarnings("nls")
public String getName() {
	return "GCCParser";
}


private  GNUBuildASTParserAction  gnuAction;

    public void ruleAction(int ruleNumber)
    {
        switch (ruleNumber)
        {
  
            //
            // Rule 1:  <openscope-ast> ::= $Empty
            //
            case 1: { action.   openASTScope();             break;
            }  
  
            //
            // Rule 2:  <empty> ::= $Empty
            //
            case 2: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 13:  literal ::= integer
            //
            case 13: { action.   consumeExpressionLiteral(IASTLiteralExpression.lk_integer_constant);            break;
            }  
  
            //
            // Rule 14:  literal ::= floating
            //
            case 14: { action.   consumeExpressionLiteral(IASTLiteralExpression.lk_float_constant);             break;
            }  
  
            //
            // Rule 15:  literal ::= charconst
            //
            case 15: { action.   consumeExpressionLiteral(IASTLiteralExpression.lk_char_constant);              break;
            }  
  
            //
            // Rule 16:  literal ::= stringlit
            //
            case 16: { action.   consumeExpressionLiteral(IASTLiteralExpression.lk_string_literal);             break;
            }  
  
            //
            // Rule 18:  primary_expression ::= primary_expression_id
            //
            case 18: { action.   consumeExpressionID();             break;
            }  
  
            //
            // Rule 19:  primary_expression ::= ( expression )
            //
            case 19: { action.   consumeExpressionBracketed();             break;
            }  
  
            //
            // Rule 22:  postfix_expression ::= postfix_expression [ expression ]
            //
            case 22: { action.   consumeExpressionArraySubscript();             break;
            }  
  
            //
            // Rule 23:  postfix_expression ::= postfix_expression ( expression_list_opt )
            //
            case 23: { action.   consumeExpressionFunctionCall();             break;
            }  
  
            //
            // Rule 24:  postfix_expression ::= postfix_expression . member_name
            //
            case 24: { action.   consumeExpressionFieldReference(false);             break;
            }  
  
            //
            // Rule 25:  postfix_expression ::= postfix_expression -> member_name
            //
            case 25: { action.   consumeExpressionFieldReference(true);             break;
            }  
  
            //
            // Rule 26:  postfix_expression ::= postfix_expression ++
            //
            case 26: { action.    consumeExpressionUnaryOperator(IASTUnaryExpression.op_postFixIncr);             break;
            }  
  
            //
            // Rule 27:  postfix_expression ::= postfix_expression --
            //
            case 27: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_postFixDecr);             break;
            }  
  
            //
            // Rule 28:  postfix_expression ::= ( type_id ) { <openscope-ast> initializer_list comma_opt }
            //
            case 28: { action.   consumeExpressionTypeIdInitializer();             break;
            }  
  
            //
            // Rule 33:  unary_expression ::= ++ unary_expression
            //
            case 33: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_prefixIncr);             break;
            }  
  
            //
            // Rule 34:  unary_expression ::= -- unary_expression
            //
            case 34: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_prefixDecr);             break;
            }  
  
            //
            // Rule 35:  unary_expression ::= & cast_expression
            //
            case 35: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_amper);             break;
            }  
  
            //
            // Rule 36:  unary_expression ::= * cast_expression
            //
            case 36: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_star);             break;
            }  
  
            //
            // Rule 37:  unary_expression ::= + cast_expression
            //
            case 37: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_plus);             break;
            }  
  
            //
            // Rule 38:  unary_expression ::= - cast_expression
            //
            case 38: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_minus);             break;
            }  
  
            //
            // Rule 39:  unary_expression ::= ~ cast_expression
            //
            case 39: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_tilde);             break;
            }  
  
            //
            // Rule 40:  unary_expression ::= ! cast_expression
            //
            case 40: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_not);             break;
            }  
  
            //
            // Rule 41:  unary_expression ::= sizeof unary_expression
            //
            case 41: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_sizeof);             break;
            }  
  
            //
            // Rule 42:  unary_expression ::= sizeof ( type_id )
            //
            case 42: { action.   consumeExpressionTypeId(IASTTypeIdExpression.op_sizeof);             break;
            }  
  
            //
            // Rule 44:  cast_expression ::= ( type_id ) cast_expression
            //
            case 44: { action.   consumeExpressionCast(IASTCastExpression.op_cast);             break;
            }  
  
            //
            // Rule 46:  multiplicative_expression ::= multiplicative_expression * cast_expression
            //
            case 46: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_multiply);             break;
            }  
  
            //
            // Rule 47:  multiplicative_expression ::= multiplicative_expression / cast_expression
            //
            case 47: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_divide);             break;
            }  
  
            //
            // Rule 48:  multiplicative_expression ::= multiplicative_expression % cast_expression
            //
            case 48: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_modulo);             break;
            }  
  
            //
            // Rule 50:  additive_expression ::= additive_expression + multiplicative_expression
            //
            case 50: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_plus);             break;
            }  
  
            //
            // Rule 51:  additive_expression ::= additive_expression - multiplicative_expression
            //
            case 51: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_minus);             break;
            }  
  
            //
            // Rule 53:  shift_expression ::= shift_expression << additive_expression
            //
            case 53: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_shiftLeft);             break;
            }  
  
            //
            // Rule 54:  shift_expression ::= shift_expression >> additive_expression
            //
            case 54: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_shiftRight);             break;
            }  
  
            //
            // Rule 56:  relational_expression ::= relational_expression < shift_expression
            //
            case 56: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_lessThan);             break;
            }  
  
            //
            // Rule 57:  relational_expression ::= relational_expression > shift_expression
            //
            case 57: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_greaterThan);             break;
            }  
  
            //
            // Rule 58:  relational_expression ::= relational_expression <= shift_expression
            //
            case 58: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_lessEqual);             break;
            }  
  
            //
            // Rule 59:  relational_expression ::= relational_expression >= shift_expression
            //
            case 59: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_greaterEqual);             break;
            }  
  
            //
            // Rule 61:  equality_expression ::= equality_expression == relational_expression
            //
            case 61: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_equals);             break;
            }  
  
            //
            // Rule 62:  equality_expression ::= equality_expression != relational_expression
            //
            case 62: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_notequals);             break;
            }  
  
            //
            // Rule 64:  and_expression ::= and_expression & equality_expression
            //
            case 64: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_binaryAnd);             break;
            }  
  
            //
            // Rule 66:  exclusive_or_expression ::= exclusive_or_expression ^ and_expression
            //
            case 66: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_binaryXor);             break;
            }  
  
            //
            // Rule 68:  inclusive_or_expression ::= inclusive_or_expression | exclusive_or_expression
            //
            case 68: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_binaryOr);             break;
            }  
  
            //
            // Rule 70:  logical_and_expression ::= logical_and_expression && inclusive_or_expression
            //
            case 70: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_logicalAnd);             break;
            }  
  
            //
            // Rule 72:  logical_or_expression ::= logical_or_expression || logical_and_expression
            //
            case 72: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_logicalOr);             break;
            }  
  
            //
            // Rule 74:  conditional_expression ::= logical_or_expression ? expression : assignment_expression
            //
            case 74: { action.   consumeExpressionConditional();             break;
            }  
  
            //
            // Rule 76:  assignment_expression ::= unary_expression = assignment_expression
            //
            case 76: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_assign);             break;
            }  
  
            //
            // Rule 77:  assignment_expression ::= unary_expression *= assignment_expression
            //
            case 77: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_multiplyAssign);             break;
            }  
  
            //
            // Rule 78:  assignment_expression ::= unary_expression /= assignment_expression
            //
            case 78: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_divideAssign);             break;
            }  
  
            //
            // Rule 79:  assignment_expression ::= unary_expression %= assignment_expression
            //
            case 79: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_moduloAssign);             break;
            }  
  
            //
            // Rule 80:  assignment_expression ::= unary_expression += assignment_expression
            //
            case 80: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_plusAssign);             break;
            }  
  
            //
            // Rule 81:  assignment_expression ::= unary_expression -= assignment_expression
            //
            case 81: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_minusAssign);             break;
            }  
  
            //
            // Rule 82:  assignment_expression ::= unary_expression <<= assignment_expression
            //
            case 82: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_shiftLeftAssign);             break;
            }  
  
            //
            // Rule 83:  assignment_expression ::= unary_expression >>= assignment_expression
            //
            case 83: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_shiftRightAssign);             break;
            }  
  
            //
            // Rule 84:  assignment_expression ::= unary_expression &= assignment_expression
            //
            case 84: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_binaryAndAssign);             break;
            }  
  
            //
            // Rule 85:  assignment_expression ::= unary_expression ^= assignment_expression
            //
            case 85: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_binaryXorAssign);             break;
            }  
  
            //
            // Rule 86:  assignment_expression ::= unary_expression |= assignment_expression
            //
            case 86: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_binaryOrAssign);             break;
            }  
  
            //
            // Rule 89:  expression_list ::= <openscope-ast> expression_list_actual
            //
            case 89: { action.   consumeExpressionList();             break;
            }  
  
            //
            // Rule 91:  expression_list_opt ::= $Empty
            //
            case 91: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 101:  statement ::= ERROR_TOKEN
            //
            case 101: { action.   consumeStatementProblem();             break;
            }  
  
            //
            // Rule 102:  labeled_statement ::= identifier_token : statement
            //
            case 102: { action.   consumeStatementLabeled();             break;
            }  
  
            //
            // Rule 103:  labeled_statement ::= case constant_expression : statement
            //
            case 103: { action.   consumeStatementCase();             break;
            }  
  
            //
            // Rule 104:  labeled_statement ::= default : statement
            //
            case 104: { action.   consumeStatementDefault();             break;
            }  
  
            //
            // Rule 105:  compound_statement ::= { }
            //
            case 105: { action.   consumeStatementCompoundStatement(false);             break;
            }  
  
            //
            // Rule 106:  compound_statement ::= { <openscope-ast> block_item_list }
            //
            case 106: { action.   consumeStatementCompoundStatement(true);             break;
            }  
  
            //
            // Rule 110:  block_item ::= declaration
            //
            case 110: { action.   consumeStatementDeclarationWithDisambiguation();             break;
            }  
  
            //
            // Rule 111:  expression_statement ::= ;
            //
            case 111: { action.   consumeStatementNull();             break;
            }  
  
            //
            // Rule 112:  expression_statement ::= expression_in_statement ;
            //
            case 112: { action.   consumeStatementExpression();             break;
            }  
  
            //
            // Rule 113:  selection_statement ::= if ( expression ) statement
            //
            case 113: { action.   consumeStatementIf(false);             break;
            }  
  
            //
            // Rule 114:  selection_statement ::= if ( expression ) statement else statement
            //
            case 114: { action.   consumeStatementIf(true);             break;
            }  
  
            //
            // Rule 115:  selection_statement ::= switch ( expression ) statement
            //
            case 115: { action.   consumeStatementSwitch();             break;
            }  
  
            //
            // Rule 117:  expression_opt ::= $Empty
            //
            case 117: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 118:  iteration_statement ::= do statement while ( expression ) ;
            //
            case 118: { action.   consumeStatementDoLoop();             break;
            }  
  
            //
            // Rule 119:  iteration_statement ::= while ( expression ) statement
            //
            case 119: { action.   consumeStatementWhileLoop();             break;
            }  
  
            //
            // Rule 120:  iteration_statement ::= for ( expression_opt ; expression_opt ; expression_opt ) statement
            //
            case 120: { action.   consumeStatementForLoop();             break;
            }  
  
            //
            // Rule 121:  iteration_statement ::= for ( declaration expression_opt ; expression_opt ) statement
            //
            case 121: { action.   consumeStatementForLoop();             break;
            }  
  
            //
            // Rule 122:  jump_statement ::= goto identifier_token ;
            //
            case 122: { action.   consumeStatementGoto();             break;
            }  
  
            //
            // Rule 123:  jump_statement ::= continue ;
            //
            case 123: { action.   consumeStatementContinue();             break;
            }  
  
            //
            // Rule 124:  jump_statement ::= break ;
            //
            case 124: { action.   consumeStatementBreak();             break;
            }  
  
            //
            // Rule 125:  jump_statement ::= return ;
            //
            case 125: { action.   consumeStatementReturn(false);             break;
            }  
  
            //
            // Rule 126:  jump_statement ::= return expression ;
            //
            case 126: { action.   consumeStatementReturn(true);             break;
            }  
  
            //
            // Rule 127:  declaration ::= declaration_specifiers ;
            //
            case 127: { action.   consumeDeclarationSimple(false);             break;
            }  
  
            //
            // Rule 128:  declaration ::= declaration_specifiers <openscope-ast> init_declarator_list ;
            //
            case 128: { action.   consumeDeclarationSimple(true);             break;
            }  
  
            //
            // Rule 129:  declaration_specifiers ::= <openscope-ast> simple_declaration_specifiers
            //
            case 129: { action.   consumeDeclarationSpecifiersSimple();             break;
            }  
  
            //
            // Rule 130:  declaration_specifiers ::= <openscope-ast> struct_or_union_declaration_specifiers
            //
            case 130: { action.   consumeDeclarationSpecifiersStructUnionEnum();             break;
            }  
  
            //
            // Rule 131:  declaration_specifiers ::= <openscope-ast> elaborated_declaration_specifiers
            //
            case 131: { action.   consumeDeclarationSpecifiersStructUnionEnum();             break;
            }  
  
            //
            // Rule 132:  declaration_specifiers ::= <openscope-ast> enum_declaration_specifiers
            //
            case 132: { action.   consumeDeclarationSpecifiersStructUnionEnum();             break;
            }  
  
            //
            // Rule 133:  declaration_specifiers ::= <openscope-ast> typdef_name_declaration_specifiers
            //
            case 133: { action.   consumeDeclarationSpecifiersTypedefName();             break;
            }  
  
            //
            // Rule 158:  init_declarator ::= complete_declarator = initializer
            //
            case 158: { action.   consumeDeclaratorWithInitializer(true);             break;
            }  
  
            //
            // Rule 160:  storage_class_specifier ::= storage_class_specifier_token
            //
            case 160: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 166:  simple_type_specifier ::= simple_type_specifier_token
            //
            case 166: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 179:  type_name_specifier ::= identifier_token
            //
            case 179: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 180:  struct_or_union_specifier ::= struct_or_union struct_or_union_specifier_hook { <openscope-ast> struct_declaration_list_opt }
            //
            case 180: { action.   consumeTypeSpecifierComposite(false);            break;
            }  
  
            //
            // Rule 181:  struct_or_union_specifier ::= struct_or_union struct_or_union_specifier_hook identifier_token struct_or_union_specifier_suffix_hook { <openscope-ast> struct_declaration_list_opt }
            //
            case 181: { action.   consumeTypeSpecifierComposite(true);            break;
            }  
  
            //
            // Rule 186:  elaborated_specifier ::= struct elaborated_specifier_hook identifier_token
            //
            case 186: { action.   consumeTypeSpecifierElaborated(IASTCompositeTypeSpecifier.k_struct);            break;
            }  
  
            //
            // Rule 187:  elaborated_specifier ::= union elaborated_specifier_hook identifier_token
            //
            case 187: { action.   consumeTypeSpecifierElaborated(IASTCompositeTypeSpecifier.k_union);            break;
            }  
  
            //
            // Rule 188:  elaborated_specifier ::= enum elaborated_specifier_hook identifier_token
            //
            case 188: { action.   consumeTypeSpecifierElaborated(IASTElaboratedTypeSpecifier.k_enum);            break;
            }  
  
            //
            // Rule 194:  struct_declaration ::= specifier_qualifier_list <openscope-ast> struct_declarator_list ;
            //
            case 194: { action.   consumeStructDeclaration(true);             break;
            }  
  
            //
            // Rule 195:  struct_declaration ::= specifier_qualifier_list ;
            //
            case 195: { action.   consumeStructDeclaration(false);             break;
            }  
  
            //
            // Rule 196:  struct_declaration ::= ERROR_TOKEN
            //
            case 196: { action.   consumeDeclarationProblem();             break;
            }  
  
            //
            // Rule 202:  struct_declarator ::= : constant_expression
            //
            case 202: { action.   consumeBitField(false);             break;
            }  
  
            //
            // Rule 203:  struct_declarator ::= declarator : constant_expression
            //
            case 203: { action.   consumeBitField(true);             break;
            }  
  
            //
            // Rule 204:  enum_specifier ::= enum enum_specifier_hook { <openscope-ast> enumerator_list_opt comma_opt }
            //
            case 204: { action.   consumeTypeSpecifierEnumeration(false);            break;
            }  
  
            //
            // Rule 205:  enum_specifier ::= enum enum_specifier_hook identifier_token { <openscope-ast> enumerator_list_opt comma_opt }
            //
            case 205: { action.   consumeTypeSpecifierEnumeration(true);            break;
            }  
  
            //
            // Rule 211:  enumerator ::= identifier_token
            //
            case 211: { action.   consumeEnumerator(false);            break;
            }  
  
            //
            // Rule 212:  enumerator ::= identifier_token = constant_expression
            //
            case 212: { action.   consumeEnumerator(true);            break;
            }  
  
            //
            // Rule 213:  type_qualifier ::= type_qualifier_token
            //
            case 213: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 217:  function_specifier ::= inline
            //
            case 217: { action.   consumeToken();             break;
            }  
  
            //
            // Rule 219:  declarator ::= <openscope-ast> pointer_seq direct_declarator
            //
            case 219: { action.   consumeDeclaratorWithPointer(true);             break;
            }  
  
            //
            // Rule 224:  basic_direct_declarator ::= declarator_id_name
            //
            case 224: { action.   consumeDirectDeclaratorIdentifier();             break;
            }  
  
            //
            // Rule 225:  basic_direct_declarator ::= ( declarator )
            //
            case 225: { action.   consumeDirectDeclaratorBracketed();             break;
            }  
  
            //
            // Rule 226:  declarator_id_name ::= identifier
            //
            case 226: { action.   consumeIdentifierName();             break;
            }  
  
            //
            // Rule 227:  array_direct_declarator ::= basic_direct_declarator array_modifier
            //
            case 227: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 228:  array_direct_declarator ::= array_direct_declarator array_modifier
            //
            case 228: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 230:  function_direct_declarator ::= basic_direct_declarator ( <openscope-ast> parameter_type_list )
            //
            case 230: { action.   consumeDirectDeclaratorFunctionDeclarator(true, true);             break;
            }  
  
            //
            // Rule 231:  function_direct_declarator ::= basic_direct_declarator ( )
            //
            case 231: { action.   consumeDirectDeclaratorFunctionDeclarator(true, false);             break;
            }  
  
            //
            // Rule 233:  function_declarator ::= <openscope-ast> pointer_seq function_direct_declarator
            //
            case 233: { action.   consumeDeclaratorWithPointer(true);             break;
            }  
  
            //
            // Rule 234:  knr_direct_declarator ::= basic_direct_declarator ( <openscope-ast> identifier_list )
            //
            case 234: { action.   consumeDirectDeclaratorFunctionDeclaratorKnR();             break;
            }  
  
            //
            // Rule 236:  knr_function_declarator ::= <openscope-ast> pointer_seq knr_direct_declarator
            //
            case 236: { action.   consumeDeclaratorWithPointer(true);             break;
            }  
  
            //
            // Rule 237:  identifier_list ::= identifier
            //
            case 237: { action.   consumeIdentifierKnR();             break;
            }  
  
            //
            // Rule 238:  identifier_list ::= identifier_list , identifier
            //
            case 238: { action.   consumeIdentifierKnR();             break;
            }  
  
            //
            // Rule 239:  array_modifier ::= [ ]
            //
            case 239: { action.   consumeDirectDeclaratorArrayModifier(false);             break;
            }  
  
            //
            // Rule 240:  array_modifier ::= [ <openscope-ast> array_modifier_type_qualifiers ]
            //
            case 240: { action.   consumeDirectDeclaratorModifiedArrayModifier(false, false, true, false);             break;
            }  
  
            //
            // Rule 241:  array_modifier ::= [ assignment_expression ]
            //
            case 241: { action.   consumeDirectDeclaratorArrayModifier(true);             break;
            }  
  
            //
            // Rule 242:  array_modifier ::= [ <openscope-ast> array_modifier_type_qualifiers assignment_expression ]
            //
            case 242: { action.   consumeDirectDeclaratorModifiedArrayModifier(false, false, true, true);             break;
            }  
  
            //
            // Rule 243:  array_modifier ::= [ static assignment_expression ]
            //
            case 243: { action.   consumeDirectDeclaratorModifiedArrayModifier(true, false, false, true);             break;
            }  
  
            //
            // Rule 244:  array_modifier ::= [ static <openscope-ast> array_modifier_type_qualifiers assignment_expression ]
            //
            case 244: { action.   consumeDirectDeclaratorModifiedArrayModifier(true, false, true, true);             break;
            }  
  
            //
            // Rule 245:  array_modifier ::= [ <openscope-ast> array_modifier_type_qualifiers static assignment_expression ]
            //
            case 245: { action.   consumeDirectDeclaratorModifiedArrayModifier(true, false, true, true);             break;
            }  
  
            //
            // Rule 246:  array_modifier ::= [ * ]
            //
            case 246: { action.   consumeDirectDeclaratorModifiedArrayModifier(false, true, false, false);             break;
            }  
  
            //
            // Rule 247:  array_modifier ::= [ <openscope-ast> array_modifier_type_qualifiers * ]
            //
            case 247: { action.   consumeDirectDeclaratorModifiedArrayModifier(false, true, true, false);             break;
            }  
  
            //
            // Rule 249:  pointer_seq ::= pointer_hook * pointer_hook
            //
            case 249: { action.   consumePointer();             break;
            }  
  
            //
            // Rule 250:  pointer_seq ::= pointer_seq pointer_hook * pointer_hook
            //
            case 250: { action.   consumePointer();             break;
            }  
  
            //
            // Rule 251:  pointer_seq ::= pointer_hook * pointer_hook <openscope-ast> type_qualifier_list
            //
            case 251: { action.   consumePointerTypeQualifierList();             break;
            }  
  
            //
            // Rule 252:  pointer_seq ::= pointer_seq pointer_hook * pointer_hook <openscope-ast> type_qualifier_list
            //
            case 252: { action.   consumePointerTypeQualifierList();             break;
            }  
  
            //
            // Rule 256:  parameter_type_list ::= parameter_list
            //
            case 256: { action.   consumeEmpty();             break;
            }  
  
            //
            // Rule 257:  parameter_type_list ::= parameter_list , ...
            //
            case 257: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 258:  parameter_type_list ::= ...
            //
            case 258: { action.   consumePlaceHolder();             break;
            }  
  
            //
            // Rule 261:  parameter_declaration ::= declaration_specifiers complete_parameter_declarator
            //
            case 261: { action.   consumeParameterDeclaration();             break;
            }  
  
            //
            // Rule 262:  parameter_declaration ::= declaration_specifiers
            //
            case 262: { action.   consumeParameterDeclarationWithoutDeclarator();             break;
            }  
  
            //
            // Rule 265:  type_id ::= specifier_qualifier_list
            //
            case 265: { action.   consumeTypeId(false);             break;
            }  
  
            //
            // Rule 266:  type_id ::= specifier_qualifier_list abstract_declarator
            //
            case 266: { action.   consumeTypeId(true);             break;
            }  
  
            //
            // Rule 268:  abstract_declarator ::= <openscope-ast> pointer_seq
            //
            case 268: { action.   consumeDeclaratorWithPointer(false);             break;
            }  
  
            //
            // Rule 269:  abstract_declarator ::= <openscope-ast> pointer_seq direct_abstract_declarator
            //
            case 269: { action.   consumeDeclaratorWithPointer(false);             break;
            }  
  
            //
            // Rule 273:  basic_direct_abstract_declarator ::= ( abstract_declarator )
            //
            case 273: { action.   consumeDirectDeclaratorBracketed();             break;
            }  
  
            //
            // Rule 274:  array_direct_abstract_declarator ::= array_modifier
            //
            case 274: { action.   consumeDirectDeclaratorArrayDeclarator(false);             break;
            }  
  
            //
            // Rule 275:  array_direct_abstract_declarator ::= array_direct_abstract_declarator array_modifier
            //
            case 275: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 276:  array_direct_abstract_declarator ::= basic_direct_abstract_declarator array_modifier
            //
            case 276: { action.   consumeDirectDeclaratorArrayDeclarator(true);             break;
            }  
  
            //
            // Rule 277:  function_direct_abstract_declarator ::= ( )
            //
            case 277: { action.   consumeDirectDeclaratorFunctionDeclarator(false, false);             break;
            }   
  
            //
            // Rule 278:  function_direct_abstract_declarator ::= basic_direct_abstract_declarator ( )
            //
            case 278: { action.   consumeDirectDeclaratorFunctionDeclarator(true, false);             break;
            }  
  
            //
            // Rule 279:  function_direct_abstract_declarator ::= ( <openscope-ast> parameter_type_list )
            //
            case 279: { action.   consumeDirectDeclaratorFunctionDeclarator(false, true);             break;
            }  
  
            //
            // Rule 280:  function_direct_abstract_declarator ::= basic_direct_abstract_declarator ( <openscope-ast> parameter_type_list )
            //
            case 280: { action.   consumeDirectDeclaratorFunctionDeclarator(true, true);             break;
            }  
  
            //
            // Rule 281:  initializer ::= assignment_expression
            //
            case 281: { action.   consumeInitializer();             break;
            }  
  
            //
            // Rule 282:  initializer ::= start_initializer_list { <openscope-ast> initializer_list comma_opt } end_initializer_list
            //
            case 282: { action.   consumeInitializerList();             break;
            }  
  
            //
            // Rule 283:  initializer ::= { <openscope-ast> }
            //
            case 283: { action.   consumeInitializerList();             break;
            }  
  
            //
            // Rule 284:  start_initializer_list ::= $Empty
            //
            case 284: { action.   initializerListStart();            break;
            }  
  
            //
            // Rule 285:  end_initializer_list ::= $Empty
            //
            case 285: { action.   initializerListEnd();            break;
            }  
  
            //
            // Rule 290:  designated_initializer ::= <openscope-ast> designation = initializer
            //
            case 290: { action.   consumeInitializerDesignated();             break;
            }  
  
            //
            // Rule 294:  designator_base ::= [ constant_expression ]
            //
            case 294: { action.   consumeDesignatorArray();             break;
            }  
  
            //
            // Rule 295:  designator_base ::= . identifier_token
            //
            case 295: { action.   consumeDesignatorField();             break;
            }  
  
            //
            // Rule 296:  designator ::= [ constant_expression ]
            //
            case 296: { action.   consumeDesignatorArray();             break;
            }  
  
            //
            // Rule 297:  designator ::= . identifier_token
            //
            case 297: { action.   consumeDesignatorField();             break;
            }  
  
            //
            // Rule 298:  translation_unit ::= external_declaration_list
            //
            case 298: { action.   consumeTranslationUnit();             break;
            }   
  
            //
            // Rule 299:  translation_unit ::= $Empty
            //
            case 299: { action.   consumeTranslationUnit();             break;
            }  
  
            //
            // Rule 304:  external_declaration ::= ;
            //
            case 304: { action.   consumeDeclarationEmpty();             break;
            }  
  
            //
            // Rule 305:  external_declaration ::= ERROR_TOKEN
            //
            case 305: { action.   consumeDeclarationProblem();             break;
            }  
  
            //
            // Rule 308:  function_definition ::= declaration_specifiers <openscope-ast> function_declarator function_body
            //
            case 308: { action.   consumeFunctionDefinition(true);             break;
            }  
  
            //
            // Rule 309:  function_definition ::= <openscope-ast> function_declarator function_body
            //
            case 309: { action.   consumeFunctionDefinition(false);             break;
            }  
  
            //
            // Rule 310:  function_definition ::= declaration_specifiers <openscope-ast> knr_function_declarator <openscope-ast> declaration_list compound_statement
            //
            case 310: { action.   consumeFunctionDefinitionKnR();             break;
            }  
  
            //
            // Rule 311:  function_body ::= { }
            //
            case 311: { action.   consumeStatementCompoundStatement(false);             break;
            }  
  
            //
            // Rule 312:  function_body ::= { <openscope-ast> block_item_list }
            //
            case 312: { action.   consumeStatementCompoundStatement(true);             break;
            }  
  
            //
            // Rule 329:  attribute_parameter ::= assignment_expression
            //
            case 329: { action.   consumeIgnore();            break;
            }  
 
            //
            // Rule 339:  extended_asm_declaration ::= asm volatile_opt ( extended_asm_param_seq ) ;
            //
            case 339: {  gnuAction.consumeDeclarationASM();           break;
            } 
  
            //
            // Rule 350:  unary_expression ::= __alignof__ unary_expression
            //
            case 350: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_alignOf);             break;
            }  
  
            //
            // Rule 351:  unary_expression ::= __alignof__ ( type_id )
            //
            case 351: { action.   consumeExpressionTypeId(IASTTypeIdExpression.op_alignof);             break;
            }  
  
            //
            // Rule 352:  unary_expression ::= typeof unary_expression
            //
            case 352: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_typeof);             break;
            }  
  
            //
            // Rule 353:  unary_expression ::= typeof ( type_id )
            //
            case 353: { action.   consumeExpressionTypeId(IASTTypeIdExpression.op_typeof);             break;
            }  
  
            //
            // Rule 354:  relational_expression ::= relational_expression >? shift_expression
            //
            case 354: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_max);             break;
            }  
  
            //
            // Rule 355:  relational_expression ::= relational_expression <? shift_expression
            //
            case 355: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_min);             break;
            }  
  
            //
            // Rule 356:  conditional_expression ::= logical_or_expression ? <empty> : assignment_expression
            //
            case 356: { action.   consumeExpressionConditional();             break;
            }  
 
            //
            // Rule 357:  primary_expression ::= ( compound_statement )
            //
            case 357: {  gnuAction.consumeCompoundStatementExpression();            break;
            } 
  
            //
            // Rule 358:  labeled_statement ::= case case_range_expression : statement
            //
            case 358: { action.   consumeStatementCase();             break;
            }  
  
            //
            // Rule 359:  case_range_expression ::= constant_expression ... constant_expression
            //
            case 359: { action.   consumeExpressionBinaryOperator(IASTBinaryExpression.op_assign);             break;
            }  
  
            //
            // Rule 363:  typeof_type_specifier ::= typeof unary_expression
            //
            case 363: { action.   consumeExpressionUnaryOperator(IASTUnaryExpression.op_typeof);             break;
            }  
  
            //
            // Rule 364:  typeof_type_specifier ::= typeof ( type_id )
            //
            case 364: { action.   consumeExpressionTypeId(IASTTypeIdExpression.op_typeof);             break;
            }  
  
            //
            // Rule 365:  declaration_specifiers ::= <openscope-ast> typeof_declaration_specifiers
            //
            case 365: { action.   consumeDeclarationSpecifiersTypeof();             break;
            }  
  
            //
            // Rule 381:  field_name_designator ::= identifier_token :
            //
            case 381: { action.   consumeDesignatorFieldGCC();             break;
            }  
  
            //
            // Rule 382:  array_range_designator ::= [ constant_expression ... constant_expression ]
            //
            case 382: { action.   consumeDesignatorArrayRange();             break;
            }  
  
            //
            // Rule 383:  designated_initializer ::= <openscope-ast> field_name_designator initializer
            //
            case 383: { action.   consumeInitializerDesignated();             break;
            }  

    
            default:
                break;
        }
        return;
    }
}

Back to the top