-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
syntactic.c
4667 lines (4111 loc) · 149 KB
/
syntactic.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 Bison parser, made by GNU Bison 3.8.2. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output, and Bison version. */
#define YYBISON 30802
/* Bison version string. */
#define YYBISON_VERSION "3.8.2"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 1
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Substitute the type names. */
#define YYSTYPE M68KASM_STYPE
/* Substitute the variable and function names. */
#define yyparse m68kasm_parse
#define yylex m68kasm_lex
#define yyerror m68kasm_error
#define yydebug m68kasm_debug
#define yynerrs m68kasm_nerrs
# ifndef YY_CAST
# ifdef __cplusplus
# define YY_CAST(Type, Val) static_cast<Type> (Val)
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
# else
# define YY_CAST(Type, Val) ((Type) (Val))
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
# endif
# endif
# ifndef YY_NULLPTR
# if defined __cplusplus
# if 201103L <= __cplusplus
# define YY_NULLPTR nullptr
# else
# define YY_NULLPTR 0
# endif
# else
# define YY_NULLPTR ((void*)0)
# endif
# endif
#include "syntactic.h"
/* Symbol kind. */
enum yysymbol_kind_t
{
YYSYMBOL_YYEMPTY = -2,
YYSYMBOL_YYEOF = 0, /* "end of file" */
YYSYMBOL_YYerror = 1, /* error */
YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
YYSYMBOL_TOKEN_DIRECTIVE_ORI = 3, /* TOKEN_DIRECTIVE_ORI */
YYSYMBOL_TOKEN_DIRECTIVE_ANDI = 4, /* TOKEN_DIRECTIVE_ANDI */
YYSYMBOL_TOKEN_DIRECTIVE_SUBI = 5, /* TOKEN_DIRECTIVE_SUBI */
YYSYMBOL_TOKEN_DIRECTIVE_ADDI = 6, /* TOKEN_DIRECTIVE_ADDI */
YYSYMBOL_TOKEN_DIRECTIVE_EORI = 7, /* TOKEN_DIRECTIVE_EORI */
YYSYMBOL_TOKEN_DIRECTIVE_CMPI = 8, /* TOKEN_DIRECTIVE_CMPI */
YYSYMBOL_TOKEN_DIRECTIVE_BTST = 9, /* TOKEN_DIRECTIVE_BTST */
YYSYMBOL_TOKEN_DIRECTIVE_BCHG = 10, /* TOKEN_DIRECTIVE_BCHG */
YYSYMBOL_TOKEN_DIRECTIVE_BCLR = 11, /* TOKEN_DIRECTIVE_BCLR */
YYSYMBOL_TOKEN_DIRECTIVE_BSET = 12, /* TOKEN_DIRECTIVE_BSET */
YYSYMBOL_TOKEN_DIRECTIVE_MOVEP = 13, /* TOKEN_DIRECTIVE_MOVEP */
YYSYMBOL_TOKEN_DIRECTIVE_MOVEA = 14, /* TOKEN_DIRECTIVE_MOVEA */
YYSYMBOL_TOKEN_DIRECTIVE_MOVE = 15, /* TOKEN_DIRECTIVE_MOVE */
YYSYMBOL_TOKEN_DIRECTIVE_NEGX = 16, /* TOKEN_DIRECTIVE_NEGX */
YYSYMBOL_TOKEN_DIRECTIVE_CLR = 17, /* TOKEN_DIRECTIVE_CLR */
YYSYMBOL_TOKEN_DIRECTIVE_NEG = 18, /* TOKEN_DIRECTIVE_NEG */
YYSYMBOL_TOKEN_DIRECTIVE_NOT = 19, /* TOKEN_DIRECTIVE_NOT */
YYSYMBOL_TOKEN_DIRECTIVE_EXT = 20, /* TOKEN_DIRECTIVE_EXT */
YYSYMBOL_TOKEN_DIRECTIVE_NBCD = 21, /* TOKEN_DIRECTIVE_NBCD */
YYSYMBOL_TOKEN_DIRECTIVE_SWAP = 22, /* TOKEN_DIRECTIVE_SWAP */
YYSYMBOL_TOKEN_DIRECTIVE_PEA = 23, /* TOKEN_DIRECTIVE_PEA */
YYSYMBOL_TOKEN_DIRECTIVE_ILLEGAL = 24, /* TOKEN_DIRECTIVE_ILLEGAL */
YYSYMBOL_TOKEN_DIRECTIVE_TAS = 25, /* TOKEN_DIRECTIVE_TAS */
YYSYMBOL_TOKEN_DIRECTIVE_TST = 26, /* TOKEN_DIRECTIVE_TST */
YYSYMBOL_TOKEN_DIRECTIVE_TRAP = 27, /* TOKEN_DIRECTIVE_TRAP */
YYSYMBOL_TOKEN_DIRECTIVE_LINK = 28, /* TOKEN_DIRECTIVE_LINK */
YYSYMBOL_TOKEN_DIRECTIVE_UNLK = 29, /* TOKEN_DIRECTIVE_UNLK */
YYSYMBOL_TOKEN_DIRECTIVE_RESET = 30, /* TOKEN_DIRECTIVE_RESET */
YYSYMBOL_TOKEN_DIRECTIVE_NOP = 31, /* TOKEN_DIRECTIVE_NOP */
YYSYMBOL_TOKEN_DIRECTIVE_STOP = 32, /* TOKEN_DIRECTIVE_STOP */
YYSYMBOL_TOKEN_DIRECTIVE_RTE = 33, /* TOKEN_DIRECTIVE_RTE */
YYSYMBOL_TOKEN_DIRECTIVE_RTS = 34, /* TOKEN_DIRECTIVE_RTS */
YYSYMBOL_TOKEN_DIRECTIVE_TRAPV = 35, /* TOKEN_DIRECTIVE_TRAPV */
YYSYMBOL_TOKEN_DIRECTIVE_RTR = 36, /* TOKEN_DIRECTIVE_RTR */
YYSYMBOL_TOKEN_DIRECTIVE_JSR = 37, /* TOKEN_DIRECTIVE_JSR */
YYSYMBOL_TOKEN_DIRECTIVE_JMP = 38, /* TOKEN_DIRECTIVE_JMP */
YYSYMBOL_TOKEN_DIRECTIVE_MOVEM = 39, /* TOKEN_DIRECTIVE_MOVEM */
YYSYMBOL_TOKEN_DIRECTIVE_LEA = 40, /* TOKEN_DIRECTIVE_LEA */
YYSYMBOL_TOKEN_DIRECTIVE_CHK = 41, /* TOKEN_DIRECTIVE_CHK */
YYSYMBOL_TOKEN_DIRECTIVE_ADDQ = 42, /* TOKEN_DIRECTIVE_ADDQ */
YYSYMBOL_TOKEN_DIRECTIVE_SUBQ = 43, /* TOKEN_DIRECTIVE_SUBQ */
YYSYMBOL_TOKEN_DIRECTIVE_ST = 44, /* TOKEN_DIRECTIVE_ST */
YYSYMBOL_TOKEN_DIRECTIVE_SF = 45, /* TOKEN_DIRECTIVE_SF */
YYSYMBOL_TOKEN_DIRECTIVE_SHI = 46, /* TOKEN_DIRECTIVE_SHI */
YYSYMBOL_TOKEN_DIRECTIVE_SLS = 47, /* TOKEN_DIRECTIVE_SLS */
YYSYMBOL_TOKEN_DIRECTIVE_SCC = 48, /* TOKEN_DIRECTIVE_SCC */
YYSYMBOL_TOKEN_DIRECTIVE_SCS = 49, /* TOKEN_DIRECTIVE_SCS */
YYSYMBOL_TOKEN_DIRECTIVE_SNE = 50, /* TOKEN_DIRECTIVE_SNE */
YYSYMBOL_TOKEN_DIRECTIVE_SEQ = 51, /* TOKEN_DIRECTIVE_SEQ */
YYSYMBOL_TOKEN_DIRECTIVE_SVC = 52, /* TOKEN_DIRECTIVE_SVC */
YYSYMBOL_TOKEN_DIRECTIVE_SVS = 53, /* TOKEN_DIRECTIVE_SVS */
YYSYMBOL_TOKEN_DIRECTIVE_SPL = 54, /* TOKEN_DIRECTIVE_SPL */
YYSYMBOL_TOKEN_DIRECTIVE_SMI = 55, /* TOKEN_DIRECTIVE_SMI */
YYSYMBOL_TOKEN_DIRECTIVE_SGE = 56, /* TOKEN_DIRECTIVE_SGE */
YYSYMBOL_TOKEN_DIRECTIVE_SLT = 57, /* TOKEN_DIRECTIVE_SLT */
YYSYMBOL_TOKEN_DIRECTIVE_SGT = 58, /* TOKEN_DIRECTIVE_SGT */
YYSYMBOL_TOKEN_DIRECTIVE_SLE = 59, /* TOKEN_DIRECTIVE_SLE */
YYSYMBOL_TOKEN_DIRECTIVE_DBT = 60, /* TOKEN_DIRECTIVE_DBT */
YYSYMBOL_TOKEN_DIRECTIVE_DBF = 61, /* TOKEN_DIRECTIVE_DBF */
YYSYMBOL_TOKEN_DIRECTIVE_DBHI = 62, /* TOKEN_DIRECTIVE_DBHI */
YYSYMBOL_TOKEN_DIRECTIVE_DBLS = 63, /* TOKEN_DIRECTIVE_DBLS */
YYSYMBOL_TOKEN_DIRECTIVE_DBCC = 64, /* TOKEN_DIRECTIVE_DBCC */
YYSYMBOL_TOKEN_DIRECTIVE_DBCS = 65, /* TOKEN_DIRECTIVE_DBCS */
YYSYMBOL_TOKEN_DIRECTIVE_DBNE = 66, /* TOKEN_DIRECTIVE_DBNE */
YYSYMBOL_TOKEN_DIRECTIVE_DBEQ = 67, /* TOKEN_DIRECTIVE_DBEQ */
YYSYMBOL_TOKEN_DIRECTIVE_DBVC = 68, /* TOKEN_DIRECTIVE_DBVC */
YYSYMBOL_TOKEN_DIRECTIVE_DBVS = 69, /* TOKEN_DIRECTIVE_DBVS */
YYSYMBOL_TOKEN_DIRECTIVE_DBPL = 70, /* TOKEN_DIRECTIVE_DBPL */
YYSYMBOL_TOKEN_DIRECTIVE_DBMI = 71, /* TOKEN_DIRECTIVE_DBMI */
YYSYMBOL_TOKEN_DIRECTIVE_DBGE = 72, /* TOKEN_DIRECTIVE_DBGE */
YYSYMBOL_TOKEN_DIRECTIVE_DBLT = 73, /* TOKEN_DIRECTIVE_DBLT */
YYSYMBOL_TOKEN_DIRECTIVE_DBGT = 74, /* TOKEN_DIRECTIVE_DBGT */
YYSYMBOL_TOKEN_DIRECTIVE_DBLE = 75, /* TOKEN_DIRECTIVE_DBLE */
YYSYMBOL_TOKEN_DIRECTIVE_BRA = 76, /* TOKEN_DIRECTIVE_BRA */
YYSYMBOL_TOKEN_DIRECTIVE_BSR = 77, /* TOKEN_DIRECTIVE_BSR */
YYSYMBOL_TOKEN_DIRECTIVE_BHI = 78, /* TOKEN_DIRECTIVE_BHI */
YYSYMBOL_TOKEN_DIRECTIVE_BLS = 79, /* TOKEN_DIRECTIVE_BLS */
YYSYMBOL_TOKEN_DIRECTIVE_BCC = 80, /* TOKEN_DIRECTIVE_BCC */
YYSYMBOL_TOKEN_DIRECTIVE_BCS = 81, /* TOKEN_DIRECTIVE_BCS */
YYSYMBOL_TOKEN_DIRECTIVE_BNE = 82, /* TOKEN_DIRECTIVE_BNE */
YYSYMBOL_TOKEN_DIRECTIVE_BEQ = 83, /* TOKEN_DIRECTIVE_BEQ */
YYSYMBOL_TOKEN_DIRECTIVE_BVC = 84, /* TOKEN_DIRECTIVE_BVC */
YYSYMBOL_TOKEN_DIRECTIVE_BVS = 85, /* TOKEN_DIRECTIVE_BVS */
YYSYMBOL_TOKEN_DIRECTIVE_BPL = 86, /* TOKEN_DIRECTIVE_BPL */
YYSYMBOL_TOKEN_DIRECTIVE_BMI = 87, /* TOKEN_DIRECTIVE_BMI */
YYSYMBOL_TOKEN_DIRECTIVE_BGE = 88, /* TOKEN_DIRECTIVE_BGE */
YYSYMBOL_TOKEN_DIRECTIVE_BLT = 89, /* TOKEN_DIRECTIVE_BLT */
YYSYMBOL_TOKEN_DIRECTIVE_BGT = 90, /* TOKEN_DIRECTIVE_BGT */
YYSYMBOL_TOKEN_DIRECTIVE_BLE = 91, /* TOKEN_DIRECTIVE_BLE */
YYSYMBOL_TOKEN_DIRECTIVE_MOVEQ = 92, /* TOKEN_DIRECTIVE_MOVEQ */
YYSYMBOL_TOKEN_DIRECTIVE_DIVU = 93, /* TOKEN_DIRECTIVE_DIVU */
YYSYMBOL_TOKEN_DIRECTIVE_DIVS = 94, /* TOKEN_DIRECTIVE_DIVS */
YYSYMBOL_TOKEN_DIRECTIVE_SBCD = 95, /* TOKEN_DIRECTIVE_SBCD */
YYSYMBOL_TOKEN_DIRECTIVE_OR = 96, /* TOKEN_DIRECTIVE_OR */
YYSYMBOL_TOKEN_DIRECTIVE_SUB = 97, /* TOKEN_DIRECTIVE_SUB */
YYSYMBOL_TOKEN_DIRECTIVE_SUBX = 98, /* TOKEN_DIRECTIVE_SUBX */
YYSYMBOL_TOKEN_DIRECTIVE_SUBA = 99, /* TOKEN_DIRECTIVE_SUBA */
YYSYMBOL_TOKEN_DIRECTIVE_EOR = 100, /* TOKEN_DIRECTIVE_EOR */
YYSYMBOL_TOKEN_DIRECTIVE_CMPM = 101, /* TOKEN_DIRECTIVE_CMPM */
YYSYMBOL_TOKEN_DIRECTIVE_CMP = 102, /* TOKEN_DIRECTIVE_CMP */
YYSYMBOL_TOKEN_DIRECTIVE_CMPA = 103, /* TOKEN_DIRECTIVE_CMPA */
YYSYMBOL_TOKEN_DIRECTIVE_MULU = 104, /* TOKEN_DIRECTIVE_MULU */
YYSYMBOL_TOKEN_DIRECTIVE_MULS = 105, /* TOKEN_DIRECTIVE_MULS */
YYSYMBOL_TOKEN_DIRECTIVE_ABCD = 106, /* TOKEN_DIRECTIVE_ABCD */
YYSYMBOL_TOKEN_DIRECTIVE_EXG = 107, /* TOKEN_DIRECTIVE_EXG */
YYSYMBOL_TOKEN_DIRECTIVE_AND = 108, /* TOKEN_DIRECTIVE_AND */
YYSYMBOL_TOKEN_DIRECTIVE_ADD = 109, /* TOKEN_DIRECTIVE_ADD */
YYSYMBOL_TOKEN_DIRECTIVE_ADDX = 110, /* TOKEN_DIRECTIVE_ADDX */
YYSYMBOL_TOKEN_DIRECTIVE_ADDA = 111, /* TOKEN_DIRECTIVE_ADDA */
YYSYMBOL_TOKEN_DIRECTIVE_ASL = 112, /* TOKEN_DIRECTIVE_ASL */
YYSYMBOL_TOKEN_DIRECTIVE_ASR = 113, /* TOKEN_DIRECTIVE_ASR */
YYSYMBOL_TOKEN_DIRECTIVE_LSL = 114, /* TOKEN_DIRECTIVE_LSL */
YYSYMBOL_TOKEN_DIRECTIVE_LSR = 115, /* TOKEN_DIRECTIVE_LSR */
YYSYMBOL_TOKEN_DIRECTIVE_ROXL = 116, /* TOKEN_DIRECTIVE_ROXL */
YYSYMBOL_TOKEN_DIRECTIVE_ROXR = 117, /* TOKEN_DIRECTIVE_ROXR */
YYSYMBOL_TOKEN_DIRECTIVE_ROL = 118, /* TOKEN_DIRECTIVE_ROL */
YYSYMBOL_TOKEN_DIRECTIVE_ROR = 119, /* TOKEN_DIRECTIVE_ROR */
YYSYMBOL_TOKEN_DIRECTIVE_DC = 120, /* TOKEN_DIRECTIVE_DC */
YYSYMBOL_TOKEN_DIRECTIVE_DCB = 121, /* TOKEN_DIRECTIVE_DCB */
YYSYMBOL_TOKEN_DIRECTIVE_REPT = 122, /* TOKEN_DIRECTIVE_REPT */
YYSYMBOL_TOKEN_DIRECTIVE_ENDR = 123, /* TOKEN_DIRECTIVE_ENDR */
YYSYMBOL_TOKEN_DIRECTIVE_MACRO = 124, /* TOKEN_DIRECTIVE_MACRO */
YYSYMBOL_TOKEN_DIRECTIVE_MACROS = 125, /* TOKEN_DIRECTIVE_MACROS */
YYSYMBOL_TOKEN_DIRECTIVE_ENDM = 126, /* TOKEN_DIRECTIVE_ENDM */
YYSYMBOL_TOKEN_DIRECTIVE_INCLUDE = 127, /* TOKEN_DIRECTIVE_INCLUDE */
YYSYMBOL_TOKEN_DIRECTIVE_INCBIN = 128, /* TOKEN_DIRECTIVE_INCBIN */
YYSYMBOL_TOKEN_DIRECTIVE_EQU = 129, /* TOKEN_DIRECTIVE_EQU */
YYSYMBOL_TOKEN_DIRECTIVE_SET = 130, /* TOKEN_DIRECTIVE_SET */
YYSYMBOL_TOKEN_DIRECTIVE_IF = 131, /* TOKEN_DIRECTIVE_IF */
YYSYMBOL_TOKEN_DIRECTIVE_ELSEIF = 132, /* TOKEN_DIRECTIVE_ELSEIF */
YYSYMBOL_TOKEN_DIRECTIVE_ELSE = 133, /* TOKEN_DIRECTIVE_ELSE */
YYSYMBOL_TOKEN_DIRECTIVE_ENDC = 134, /* TOKEN_DIRECTIVE_ENDC */
YYSYMBOL_TOKEN_DIRECTIVE_WHILE = 135, /* TOKEN_DIRECTIVE_WHILE */
YYSYMBOL_TOKEN_DIRECTIVE_ENDW = 136, /* TOKEN_DIRECTIVE_ENDW */
YYSYMBOL_TOKEN_DIRECTIVE_EVEN = 137, /* TOKEN_DIRECTIVE_EVEN */
YYSYMBOL_TOKEN_DIRECTIVE_CNOP = 138, /* TOKEN_DIRECTIVE_CNOP */
YYSYMBOL_TOKEN_DIRECTIVE_INFORM = 139, /* TOKEN_DIRECTIVE_INFORM */
YYSYMBOL_TOKEN_DIRECTIVE_FAIL = 140, /* TOKEN_DIRECTIVE_FAIL */
YYSYMBOL_TOKEN_DIRECTIVE_END = 141, /* TOKEN_DIRECTIVE_END */
YYSYMBOL_TOKEN_DIRECTIVE_RS = 142, /* TOKEN_DIRECTIVE_RS */
YYSYMBOL_TOKEN_DIRECTIVE_RSSET = 143, /* TOKEN_DIRECTIVE_RSSET */
YYSYMBOL_TOKEN_DIRECTIVE_RSRESET = 144, /* TOKEN_DIRECTIVE_RSRESET */
YYSYMBOL_TOKEN_DIRECTIVE_OBJ = 145, /* TOKEN_DIRECTIVE_OBJ */
YYSYMBOL_TOKEN_DIRECTIVE_OBJEND = 146, /* TOKEN_DIRECTIVE_OBJEND */
YYSYMBOL_TOKEN_DIRECTIVE_ORG = 147, /* TOKEN_DIRECTIVE_ORG */
YYSYMBOL_TOKEN_SIZE_BYTE = 148, /* TOKEN_SIZE_BYTE */
YYSYMBOL_TOKEN_SIZE_SHORT = 149, /* TOKEN_SIZE_SHORT */
YYSYMBOL_TOKEN_SIZE_WORD = 150, /* TOKEN_SIZE_WORD */
YYSYMBOL_TOKEN_SIZE_LONGWORD = 151, /* TOKEN_SIZE_LONGWORD */
YYSYMBOL_TOKEN_DATA_REGISTER = 152, /* TOKEN_DATA_REGISTER */
YYSYMBOL_TOKEN_ADDRESS_REGISTER = 153, /* TOKEN_ADDRESS_REGISTER */
YYSYMBOL_TOKEN_NUMBER = 154, /* TOKEN_NUMBER */
YYSYMBOL_TOKEN_IDENTIFIER = 155, /* TOKEN_IDENTIFIER */
YYSYMBOL_TOKEN_LOCAL_IDENTIFIER = 156, /* TOKEN_LOCAL_IDENTIFIER */
YYSYMBOL_TOKEN_STRING = 157, /* TOKEN_STRING */
YYSYMBOL_TOKEN_STATUS_REGISTER = 158, /* TOKEN_STATUS_REGISTER */
YYSYMBOL_TOKEN_CONDITION_CODE_REGISTER = 159, /* TOKEN_CONDITION_CODE_REGISTER */
YYSYMBOL_TOKEN_USER_STACK_POINTER_REGISTER = 160, /* TOKEN_USER_STACK_POINTER_REGISTER */
YYSYMBOL_TOKEN_PROGRAM_COUNTER = 161, /* TOKEN_PROGRAM_COUNTER */
YYSYMBOL_TOKEN_LOGICAL_AND = 162, /* TOKEN_LOGICAL_AND */
YYSYMBOL_TOKEN_LOGICAL_OR = 163, /* TOKEN_LOGICAL_OR */
YYSYMBOL_TOKEN_EQUALITY = 164, /* TOKEN_EQUALITY */
YYSYMBOL_TOKEN_INEQUALITY = 165, /* TOKEN_INEQUALITY */
YYSYMBOL_TOKEN_LESS_OR_EQUAL = 166, /* TOKEN_LESS_OR_EQUAL */
YYSYMBOL_TOKEN_MORE_OR_EQUAL = 167, /* TOKEN_MORE_OR_EQUAL */
YYSYMBOL_TOKEN_LEFT_SHIFT = 168, /* TOKEN_LEFT_SHIFT */
YYSYMBOL_TOKEN_RIGHT_SHIFT = 169, /* TOKEN_RIGHT_SHIFT */
YYSYMBOL_TOKEN_STRLEN = 170, /* TOKEN_STRLEN */
YYSYMBOL_TOKEN_DEF = 171, /* TOKEN_DEF */
YYSYMBOL_172_ = 172, /* ',' */
YYSYMBOL_173_ = 173, /* '*' */
YYSYMBOL_174_ = 174, /* '=' */
YYSYMBOL_175_ = 175, /* '.' */
YYSYMBOL_176_ = 176, /* '(' */
YYSYMBOL_177_ = 177, /* ')' */
YYSYMBOL_178_ = 178, /* '+' */
YYSYMBOL_179_ = 179, /* '-' */
YYSYMBOL_180_ = 180, /* '#' */
YYSYMBOL_181_ = 181, /* '/' */
YYSYMBOL_182_ = 182, /* '<' */
YYSYMBOL_183_ = 183, /* '>' */
YYSYMBOL_184_ = 184, /* '%' */
YYSYMBOL_185_ = 185, /* '&' */
YYSYMBOL_186_ = 186, /* '!' */
YYSYMBOL_187_ = 187, /* '|' */
YYSYMBOL_188_ = 188, /* '^' */
YYSYMBOL_189_ = 189, /* '~' */
YYSYMBOL_190_ = 190, /* '@' */
YYSYMBOL_YYACCEPT = 191, /* $accept */
YYSYMBOL_statement = 192, /* statement */
YYSYMBOL_expression_list = 193, /* expression_list */
YYSYMBOL_identifier_list = 194, /* identifier_list */
YYSYMBOL_instruction = 195, /* instruction */
YYSYMBOL_full_opcode = 196, /* full_opcode */
YYSYMBOL_opcode = 197, /* opcode */
YYSYMBOL_size = 198, /* size */
YYSYMBOL_operand = 199, /* operand */
YYSYMBOL_register_list = 200, /* register_list */
YYSYMBOL_register_span = 201, /* register_span */
YYSYMBOL_data_or_address_register = 202, /* data_or_address_register */
YYSYMBOL_expression = 203, /* expression */
YYSYMBOL_expression1 = 204, /* expression1 */
YYSYMBOL_expression2 = 205, /* expression2 */
YYSYMBOL_expression3 = 206, /* expression3 */
YYSYMBOL_expression4 = 207, /* expression4 */
YYSYMBOL_expression5 = 208, /* expression5 */
YYSYMBOL_expression6 = 209, /* expression6 */
YYSYMBOL_expression7 = 210, /* expression7 */
YYSYMBOL_expression8 = 211 /* expression8 */
};
typedef enum yysymbol_kind_t yysymbol_kind_t;
/* Unqualified %code blocks. */
#line 415 "syntactic.y"
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
int m68kasm_lex(M68KASM_STYPE *yylval_param, void *yyscanner);
void m68kasm_warning(void *scanner, Statement *statement, const char *message);
void m68kasm_error(void *scanner, Statement *statement, const char *message);
static cc_bool DoExpression(Expression *expression, ExpressionType type, Expression *left_expression, Expression *right_expression);
static void DestroyIdentifierList(IdentifierList *list);
static void DestroyExpressionList(ExpressionList *list);
static void DestroyOperand(Operand *operand);
static void DestroyStatementInstruction(StatementInstruction *instruction);
#line 340 "syntactic.c"
#ifdef short
# undef short
#endif
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
<limits.h> and (if available) <stdint.h> are included
so that the code can choose integer types of a good width. */
#ifndef __PTRDIFF_MAX__
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
# define YY_STDINT_H
# endif
#endif
/* Narrow types that promote to a signed type and that can represent a
signed or unsigned integer of at least N bits. In tables they can
save space and decrease cache pressure. Promoting to a signed type
helps avoid bugs in integer arithmetic. */
#ifdef __INT_LEAST8_MAX__
typedef __INT_LEAST8_TYPE__ yytype_int8;
#elif defined YY_STDINT_H
typedef int_least8_t yytype_int8;
#else
typedef signed char yytype_int8;
#endif
#ifdef __INT_LEAST16_MAX__
typedef __INT_LEAST16_TYPE__ yytype_int16;
#elif defined YY_STDINT_H
typedef int_least16_t yytype_int16;
#else
typedef short yytype_int16;
#endif
/* Work around bug in HP-UX 11.23, which defines these macros
incorrectly for preprocessor constants. This workaround can likely
be removed in 2023, as HPE has promised support for HP-UX 11.23
(aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
<https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */
#ifdef __hpux
# undef UINT_LEAST8_MAX
# undef UINT_LEAST16_MAX
# define UINT_LEAST8_MAX 255
# define UINT_LEAST16_MAX 65535
#endif
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
&& UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
#else
typedef short yytype_uint8;
#endif
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
&& UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
#else
typedef int yytype_uint16;
#endif
#ifndef YYPTRDIFF_T
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
# define YYPTRDIFF_T __PTRDIFF_TYPE__
# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
# elif defined PTRDIFF_MAX
# ifndef ptrdiff_t
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# endif
# define YYPTRDIFF_T ptrdiff_t
# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
# else
# define YYPTRDIFF_T long
# define YYPTRDIFF_MAXIMUM LONG_MAX
# endif
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned
# endif
#endif
#define YYSIZE_MAXIMUM \
YY_CAST (YYPTRDIFF_T, \
(YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
? YYPTRDIFF_MAXIMUM \
: YY_CAST (YYSIZE_T, -1)))
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;
/* State numbers in computations. */
typedef int yy_state_fast_t;
#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
# endif
# endif
# ifndef YY_
# define YY_(Msgid) Msgid
# endif
#endif
#ifndef YY_ATTRIBUTE_PURE
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
# else
# define YY_ATTRIBUTE_PURE
# endif
#endif
#ifndef YY_ATTRIBUTE_UNUSED
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
# else
# define YY_ATTRIBUTE_UNUSED
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YY_USE(E) ((void) (E))
#else
# define YY_USE(E) /* empty */
#endif
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
# else
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
# define YY_IGNORE_USELESS_CAST_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
# define YY_IGNORE_USELESS_CAST_END \
_Pragma ("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_END
#endif
#define YY_ASSERT(E) ((void) (0 && (E)))
#if 1
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's 'empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* 1 */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined M68KASM_STYPE_IS_TRIVIAL && M68KASM_STYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yy_state_t yyss_alloc;
YYSTYPE yyvs_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
# define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYPTRDIFF_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / YYSIZEOF (*yyptr); \
} \
while (0)
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# else
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYPTRDIFF_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 198
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 410
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 191
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 21
/* YYNRULES -- Number of rules. */
#define YYNRULES 240
/* YYNSTATES -- Number of states. */
#define YYNSTATES 329
/* YYMAXUTOK -- Last valid token kind. */
#define YYMAXUTOK 426
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, with out-of-bounds checking. */
#define YYTRANSLATE(YYX) \
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
: YYSYMBOL_YYUNDEF)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 186, 2, 180, 2, 184, 185, 2,
176, 177, 173, 178, 172, 179, 175, 181, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
182, 174, 183, 2, 190, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 188, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 187, 2, 189, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 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
};
#if M68KASM_DEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_int16 yyrline[] =
{
0, 641, 641, 644, 649, 655, 662, 667, 675, 682,
690, 695, 699, 706, 713, 719, 725, 731, 736, 740,
745, 750, 755, 760, 765, 769, 773, 777, 782, 786,
790, 796, 802, 811, 816, 820, 826, 831, 838, 842,
847, 851, 859, 876, 904, 921, 949, 955, 961, 970,
975, 981, 989, 993, 997, 1001, 1005, 1009, 1013, 1017,
1021, 1025, 1029, 1033, 1037, 1041, 1045, 1049, 1053, 1057,
1061, 1065, 1069, 1073, 1077, 1081, 1085, 1089, 1093, 1097,
1101, 1105, 1109, 1113, 1117, 1121, 1125, 1129, 1133, 1137,
1141, 1145, 1149, 1153, 1158, 1163, 1168, 1173, 1178, 1183,
1188, 1193, 1198, 1203, 1208, 1213, 1218, 1223, 1228, 1233,
1238, 1243, 1248, 1253, 1258, 1263, 1268, 1273, 1278, 1283,
1288, 1293, 1298, 1303, 1308, 1313, 1317, 1321, 1326, 1331,
1336, 1341, 1346, 1351, 1356, 1361, 1366, 1371, 1376, 1381,
1386, 1391, 1395, 1399, 1403, 1407, 1411, 1415, 1419, 1423,
1427, 1431, 1435, 1439, 1443, 1447, 1451, 1455, 1459, 1463,
1467, 1471, 1475, 1479, 1483, 1487, 1491, 1495, 1499, 1506,
1510, 1514, 1518, 1526, 1531, 1536, 1541, 1547, 1557, 1566,
1577, 1587, 1592, 1601, 1609, 1619, 1629, 1645, 1649, 1653,
1658, 1664, 1671, 1702, 1706, 1713, 1717, 1742, 1746, 1759,
1764, 1770, 1778, 1782, 1787, 1792, 1800, 1804, 1809, 1814,
1819, 1827, 1831, 1836, 1844, 1848, 1853, 1858, 1866, 1870,
1875, 1880, 1885, 1893, 1897, 1902, 1910, 1914, 1918, 1923,
1929, 1937, 1942, 1947, 1952, 1974, 1979, 1983, 1987, 1991,
1996
};
#endif
/** Accessing symbol of state STATE. */
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
#if 1
/* The user-facing name of the symbol whose (internal) number is
YYSYMBOL. No bounds checking. */
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"\"end of file\"", "error", "\"invalid token\"", "TOKEN_DIRECTIVE_ORI",
"TOKEN_DIRECTIVE_ANDI", "TOKEN_DIRECTIVE_SUBI", "TOKEN_DIRECTIVE_ADDI",
"TOKEN_DIRECTIVE_EORI", "TOKEN_DIRECTIVE_CMPI", "TOKEN_DIRECTIVE_BTST",
"TOKEN_DIRECTIVE_BCHG", "TOKEN_DIRECTIVE_BCLR", "TOKEN_DIRECTIVE_BSET",
"TOKEN_DIRECTIVE_MOVEP", "TOKEN_DIRECTIVE_MOVEA", "TOKEN_DIRECTIVE_MOVE",
"TOKEN_DIRECTIVE_NEGX", "TOKEN_DIRECTIVE_CLR", "TOKEN_DIRECTIVE_NEG",
"TOKEN_DIRECTIVE_NOT", "TOKEN_DIRECTIVE_EXT", "TOKEN_DIRECTIVE_NBCD",
"TOKEN_DIRECTIVE_SWAP", "TOKEN_DIRECTIVE_PEA", "TOKEN_DIRECTIVE_ILLEGAL",
"TOKEN_DIRECTIVE_TAS", "TOKEN_DIRECTIVE_TST", "TOKEN_DIRECTIVE_TRAP",
"TOKEN_DIRECTIVE_LINK", "TOKEN_DIRECTIVE_UNLK", "TOKEN_DIRECTIVE_RESET",
"TOKEN_DIRECTIVE_NOP", "TOKEN_DIRECTIVE_STOP", "TOKEN_DIRECTIVE_RTE",
"TOKEN_DIRECTIVE_RTS", "TOKEN_DIRECTIVE_TRAPV", "TOKEN_DIRECTIVE_RTR",
"TOKEN_DIRECTIVE_JSR", "TOKEN_DIRECTIVE_JMP", "TOKEN_DIRECTIVE_MOVEM",
"TOKEN_DIRECTIVE_LEA", "TOKEN_DIRECTIVE_CHK", "TOKEN_DIRECTIVE_ADDQ",
"TOKEN_DIRECTIVE_SUBQ", "TOKEN_DIRECTIVE_ST", "TOKEN_DIRECTIVE_SF",
"TOKEN_DIRECTIVE_SHI", "TOKEN_DIRECTIVE_SLS", "TOKEN_DIRECTIVE_SCC",
"TOKEN_DIRECTIVE_SCS", "TOKEN_DIRECTIVE_SNE", "TOKEN_DIRECTIVE_SEQ",
"TOKEN_DIRECTIVE_SVC", "TOKEN_DIRECTIVE_SVS", "TOKEN_DIRECTIVE_SPL",
"TOKEN_DIRECTIVE_SMI", "TOKEN_DIRECTIVE_SGE", "TOKEN_DIRECTIVE_SLT",
"TOKEN_DIRECTIVE_SGT", "TOKEN_DIRECTIVE_SLE", "TOKEN_DIRECTIVE_DBT",
"TOKEN_DIRECTIVE_DBF", "TOKEN_DIRECTIVE_DBHI", "TOKEN_DIRECTIVE_DBLS",
"TOKEN_DIRECTIVE_DBCC", "TOKEN_DIRECTIVE_DBCS", "TOKEN_DIRECTIVE_DBNE",
"TOKEN_DIRECTIVE_DBEQ", "TOKEN_DIRECTIVE_DBVC", "TOKEN_DIRECTIVE_DBVS",
"TOKEN_DIRECTIVE_DBPL", "TOKEN_DIRECTIVE_DBMI", "TOKEN_DIRECTIVE_DBGE",
"TOKEN_DIRECTIVE_DBLT", "TOKEN_DIRECTIVE_DBGT", "TOKEN_DIRECTIVE_DBLE",
"TOKEN_DIRECTIVE_BRA", "TOKEN_DIRECTIVE_BSR", "TOKEN_DIRECTIVE_BHI",
"TOKEN_DIRECTIVE_BLS", "TOKEN_DIRECTIVE_BCC", "TOKEN_DIRECTIVE_BCS",
"TOKEN_DIRECTIVE_BNE", "TOKEN_DIRECTIVE_BEQ", "TOKEN_DIRECTIVE_BVC",
"TOKEN_DIRECTIVE_BVS", "TOKEN_DIRECTIVE_BPL", "TOKEN_DIRECTIVE_BMI",
"TOKEN_DIRECTIVE_BGE", "TOKEN_DIRECTIVE_BLT", "TOKEN_DIRECTIVE_BGT",
"TOKEN_DIRECTIVE_BLE", "TOKEN_DIRECTIVE_MOVEQ", "TOKEN_DIRECTIVE_DIVU",
"TOKEN_DIRECTIVE_DIVS", "TOKEN_DIRECTIVE_SBCD", "TOKEN_DIRECTIVE_OR",
"TOKEN_DIRECTIVE_SUB", "TOKEN_DIRECTIVE_SUBX", "TOKEN_DIRECTIVE_SUBA",
"TOKEN_DIRECTIVE_EOR", "TOKEN_DIRECTIVE_CMPM", "TOKEN_DIRECTIVE_CMP",
"TOKEN_DIRECTIVE_CMPA", "TOKEN_DIRECTIVE_MULU", "TOKEN_DIRECTIVE_MULS",
"TOKEN_DIRECTIVE_ABCD", "TOKEN_DIRECTIVE_EXG", "TOKEN_DIRECTIVE_AND",
"TOKEN_DIRECTIVE_ADD", "TOKEN_DIRECTIVE_ADDX", "TOKEN_DIRECTIVE_ADDA",
"TOKEN_DIRECTIVE_ASL", "TOKEN_DIRECTIVE_ASR", "TOKEN_DIRECTIVE_LSL",
"TOKEN_DIRECTIVE_LSR", "TOKEN_DIRECTIVE_ROXL", "TOKEN_DIRECTIVE_ROXR",
"TOKEN_DIRECTIVE_ROL", "TOKEN_DIRECTIVE_ROR", "TOKEN_DIRECTIVE_DC",
"TOKEN_DIRECTIVE_DCB", "TOKEN_DIRECTIVE_REPT", "TOKEN_DIRECTIVE_ENDR",
"TOKEN_DIRECTIVE_MACRO", "TOKEN_DIRECTIVE_MACROS",
"TOKEN_DIRECTIVE_ENDM", "TOKEN_DIRECTIVE_INCLUDE",
"TOKEN_DIRECTIVE_INCBIN", "TOKEN_DIRECTIVE_EQU", "TOKEN_DIRECTIVE_SET",
"TOKEN_DIRECTIVE_IF", "TOKEN_DIRECTIVE_ELSEIF", "TOKEN_DIRECTIVE_ELSE",
"TOKEN_DIRECTIVE_ENDC", "TOKEN_DIRECTIVE_WHILE", "TOKEN_DIRECTIVE_ENDW",
"TOKEN_DIRECTIVE_EVEN", "TOKEN_DIRECTIVE_CNOP", "TOKEN_DIRECTIVE_INFORM",
"TOKEN_DIRECTIVE_FAIL", "TOKEN_DIRECTIVE_END", "TOKEN_DIRECTIVE_RS",
"TOKEN_DIRECTIVE_RSSET", "TOKEN_DIRECTIVE_RSRESET",
"TOKEN_DIRECTIVE_OBJ", "TOKEN_DIRECTIVE_OBJEND", "TOKEN_DIRECTIVE_ORG",
"TOKEN_SIZE_BYTE", "TOKEN_SIZE_SHORT", "TOKEN_SIZE_WORD",
"TOKEN_SIZE_LONGWORD", "TOKEN_DATA_REGISTER", "TOKEN_ADDRESS_REGISTER",
"TOKEN_NUMBER", "TOKEN_IDENTIFIER", "TOKEN_LOCAL_IDENTIFIER",
"TOKEN_STRING", "TOKEN_STATUS_REGISTER", "TOKEN_CONDITION_CODE_REGISTER",
"TOKEN_USER_STACK_POINTER_REGISTER", "TOKEN_PROGRAM_COUNTER",
"TOKEN_LOGICAL_AND", "TOKEN_LOGICAL_OR", "TOKEN_EQUALITY",
"TOKEN_INEQUALITY", "TOKEN_LESS_OR_EQUAL", "TOKEN_MORE_OR_EQUAL",
"TOKEN_LEFT_SHIFT", "TOKEN_RIGHT_SHIFT", "TOKEN_STRLEN", "TOKEN_DEF",
"','", "'*'", "'='", "'.'", "'('", "')'", "'+'", "'-'", "'#'", "'/'",
"'<'", "'>'", "'%'", "'&'", "'!'", "'|'", "'^'", "'~'", "'@'", "$accept",
"statement", "expression_list", "identifier_list", "instruction",
"full_opcode", "opcode", "size", "operand", "register_list",
"register_span", "data_or_address_register", "expression", "expression1",
"expression2", "expression3", "expression4", "expression5",
"expression6", "expression7", "expression8", YY_NULLPTR
};
static const char *
yysymbol_name (yysymbol_kind_t yysymbol)
{
return yytname[yysymbol];
}
#endif
#define YYPACT_NINF (-256)
#define yypact_value_is_default(Yyn) \
((Yyn) == YYPACT_NINF)
#define YYTABLE_NINF (-1)
#define yytable_value_is_error(Yyn) \
0
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
static const yytype_int16 yypact[] =
{
199, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, -256, -256,
-256, -256, -256, -256, -256, -256, -256, -256, 31, 31,
193, -256, -151, -152, -256, -138, -132, 193, 193, 193,
193, -256, -256, 193, -256, -256, 193, 193, -256, -256,
31, 193, 193, 193, -256, 193, 193, 34, -256, -95,
-98, -256, -256, -256, -256, 193, 193, -256, -107, -256,
-256, -121, -108, -256, 193, 193, 193, 193, 193, -256,
-60, -94, -77, -173, -72, 8, -41, -256, -256, -256,
-106, -100, -100, -256, -90, -60, -60, -60, -60, -60,
-55, -52, 193, -60, -60, -60, -60, -60, -256, -256,
-256, -256, -256, -256, -57, 220, 193, -84, -256, -66,
-61, -5, -256, -256, -48, -60, 5, -256, -16, 0,
-150, -256, -256, -256, -256, 193, 193, 193, 193, 193,
193, 193, 193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 193, 193, -152, 21, 193, 193, 3,
-60, -103, -2, -17, -60, -95, 215, 215, -135, -256,
193, 193, 6, 10, -256, -94, -94, -77, -77, -77,
-173, -173, -173, -173, -72, -72, 8, 8, 8, -41,
-41, -41, -41, -256, -256, -100, -256, 12, -60, 13,
215, 11, 215, 185, -256, -256, -256, -47, -46, -60,
-60, -256, -256, 193, 193, -110, -256, -104, -256, 215,
-256, 215, -256, -60, -48, -256, 188, -256, 201, 1,
15, -256, -256, -256, 209, -256, 210, -256, -256
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */
static const yytype_uint8 yydefact[] =
{
2, 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, 0, 0,
0, 11, 12, 16, 18, 0, 0, 0, 0, 0,
24, 25, 26, 0, 28, 29, 0, 0, 33, 34,
0, 0, 38, 0, 40, 0, 0, 0, 3, 46,
49, 169, 170, 171, 172, 0, 0, 231, 232, 233,
235, 0, 0, 236, 0, 0, 0, 0, 0, 237,
10, 199, 202, 206, 211, 214, 218, 223, 226, 44,
13, 14, 17, 6, 7, 19, 20, 22, 23, 27,
0, 0, 0, 36, 37, 39, 41, 21, 1, 197,
198, 187, 188, 189, 0, 0, 0, 47, 192, 193,
195, 190, 50, 51, 4, 42, 0, 234, 0, 0,
0, 227, 228, 230, 229, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
35, 0, 0, 0, 186, 0, 0, 0, 0, 191,
0, 0, 0, 0, 238, 200, 201, 204, 205, 203,
208, 210, 207, 209, 212, 213, 215, 216, 217, 219,
220, 221, 222, 224, 225, 15, 45, 8, 30, 31,
0, 173, 0, 0, 48, 194, 196, 0, 0, 43,
5, 239, 240, 0, 0, 0, 174, 0, 175, 0,
176, 0, 181, 9, 32, 179, 0, 184, 0, 0,
0, 177, 182, 180, 0, 185, 0, 178, 183
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-256, -256, 66, -122, -256, -256, -256, -119, 133, 136,
-256, -255, -113, 155, -30, 121, 150, 123, 116, -157,
-256
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_uint8 yydefgoto[] =
{
0, 147, 214, 181, 148, 149, 150, 155, 207, 208,
209, 210, 220, 171, 172, 173, 174, 175, 176, 177,
178
};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule whose
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
156, 182, 296, 179, 179, 234, 235, 170, 221, 222,
223, 224, 225, 226, 185, 186, 187, 188, 297, 183,
189, 192, 180, 190, 191, 184, 298, 264, 193, 194,
195, 213, 196, 197, 198, 305, 211, 307, 151, 152,
153, 154, 215, 216, 151, 152, 153, 154, 222, 217,
151, 152, 153, 154, 319, 218, 320, 199, 200, 157,
158, 159, 160, 201, 202, 203, 245, 315, 219, 290,
227, 228, 246, 317, 291, 161, 162, 212, 163, 250,
229, 204, 247, 165, 205, 206, 283, 284, 255, 230,
231, 167, 259, 254, 168, 169, 251, 157, 158, 159,
160, 236, 225, 226, 252, 232, 233, 225, 226, 237,
225, 226, 238, 161, 162, 256, 163, 248, 257, 164,
249, 165, 166, 285, 260, 309, 311, 243, 244, 167,
310, 312, 168, 169, 287, 288, 293, 157, 158, 159,
160, 262, 211, 151, 152, 153, 154, 299, 300, 151,
152, 153, 154, 161, 162, 263, 163, 225, 226, 164,
289, 165, 166, 151, 152, 153, 154, 225, 226, 167,
292, 258, 168, 169, 225, 226, 286, 261, 323, 151,
152, 153, 154, 301, 303, 304, 316, 302, 318, 306,
313, 215, 325, 239, 240, 241, 242, 267, 268, 269,
324, 326, 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, 157, 158, 159,
160, 270, 271, 272, 273, 279, 280, 281, 282, 276,
277, 278, 308, 161, 162, 321, 163, 199, 200, 164,
314, 165, 166, 146, 157, 158, 159, 160, 322, 167,
265, 266, 168, 169, 274, 275, 327, 328, 294, 0,
161, 162, 295, 163, 0, 0, 253, 0, 165, 166,