forked from dlang/dlang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grammar.dd
1820 lines (1503 loc) · 49.7 KB
/
grammar.dd
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
Ddoc
$(SPEC_S Grammar,
$(H3 Lexical Syntax)
$(P Refer to the page for $(LINK2 lex.html, lexical syntax).)
$(H3 $(LNAME2 type, Type))
$(GRAMMAR
$(GNAME Type):
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK BasicType2)$(OPT)
$(GNAME TypeCtors):
$(GLINK TypeCtor)
$(GLINK TypeCtor) $(I TypeCtors)
$(GNAME TypeCtor):
$(D const)
$(D immutable)
$(D inout)
$(D shared)
$(GNAME BasicType):
$(GLINK BasicTypeX)
$(D .) $(GLINK IdentifierList)
$(GLINK IdentifierList)
$(GLINK Typeof)
$(GLINK Typeof) $(D .) $(GLINK IdentifierList)
$(GLINK TypeCtor) $(D $(LPAREN)) $(GLINK Type) $(D $(RPAREN))
$(GLINK TypeVector)
$(GNAME BasicTypeX):
$(D bool)
$(D byte)
$(D ubyte)
$(D short)
$(D ushort)
$(D int)
$(D uint)
$(D long)
$(D ulong)
$(D char)
$(D wchar)
$(D dchar)
$(D float)
$(D double)
$(D real)
$(D ifloat)
$(D idouble)
$(D ireal)
$(D cfloat)
$(D cdouble)
$(D creal)
$(D void)
$(GNAME BasicType2):
$(GLINK BasicType2X) $(GLINK BasicType2)$(OPT)
$(GNAME BasicType2X):
$(D *)
$(D [ ])
$(D [) $(ASSIGNEXPRESSION) $(D ])
$(D [) $(ASSIGNEXPRESSION) .. $(ASSIGNEXPRESSION) $(D ])
$(D [) $(GLINK Type) $(D ])
$(D delegate) $(GLINK Parameters) $(GLINK MemberFunctionAttributes)$(OPT)
$(D function) $(GLINK Parameters) $(GLINK FunctionAttributes)$(OPT)
$(GNAME IdentifierList):
$(I Identifier)
$(I Identifier) $(D .) $(I IdentifierList)
$(GLINK TemplateInstance)
$(GLINK TemplateInstance) $(D .) $(I IdentifierList)
$(I Identifier) $(D [) $(ASSIGNEXPRESSION) $(D].) $(I IdentifierList)
$(GNAME Typeof):
$(D typeof $(LPAREN)) $(EXPRESSION) $(D $(RPAREN))
$(D typeof $(LPAREN)) $(D return) $(D $(RPAREN))
$(GNAME TypeVector):
$(D __vector) $(D $(LPAREN)) $(GLINK Type) $(D $(RPAREN))
)
$(H3 $(LNAME2 expression, Expression))
$(GRAMMAR
$(GNAME Expression):
$(I CommaExpression)
$(GNAME CommaExpression):
$(GLINK AssignExpression)
$(GLINK AssignExpression) $(D ,) $(I CommaExpression)
)
$(GRAMMAR
$(GNAME AssignExpression):
$(GLINK ConditionalExpression)
$(GLINK ConditionalExpression) $(D =) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D +=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D -=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D *=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D /=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D %=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D &=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D |=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D ^=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D ~=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D <)$(D <)$(D =) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D >>=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D >>>=) $(I AssignExpression)
$(GLINK ConditionalExpression) $(D ^^=) $(I AssignExpression)
)
$(GRAMMAR
$(GNAME ConditionalExpression):
$(GLINK OrOrExpression)
$(GLINK OrOrExpression) $(D ?) $(GLINK Expression) $(D :) $(I ConditionalExpression)
)
$(GRAMMAR
$(GNAME OrOrExpression):
$(GLINK AndAndExpression)
$(I OrOrExpression) $(D ||) $(GLINK AndAndExpression)
)
$(GRAMMAR
$(GNAME AndAndExpression):
$(GLINK OrExpression)
$(I AndAndExpression) $(CODE_AMP)$(CODE_AMP) $(GLINK OrExpression)
$(GLINK CmpExpression)
$(I AndAndExpression) $(CODE_AMP)$(CODE_AMP) $(GLINK CmpExpression)
)
$(GRAMMAR
$(GNAME OrExpression):
$(GLINK XorExpression)
$(I OrExpression) $(D |) $(GLINK XorExpression)
)
$(GRAMMAR
$(GNAME XorExpression):
$(GLINK AndExpression)
$(I XorExpression) $(D ^) $(GLINK AndExpression)
)
$(GRAMMAR
$(GNAME AndExpression):
$(GLINK ShiftExpression)
$(I AndExpression) $(D &) $(GLINK ShiftExpression)
)
$(GRAMMAR
$(GNAME CmpExpression):
$(GLINK ShiftExpression)
$(GLINK EqualExpression)
$(GLINK IdentityExpression)
$(GLINK RelExpression)
$(GLINK InExpression)
)
$(GRAMMAR
$(GNAME EqualExpression):
$(GLINK ShiftExpression) $(D ==) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !=) $(GLINK ShiftExpression)
)
$(GRAMMAR
$(GNAME IdentityExpression):
$(GLINK ShiftExpression) $(D is) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !is) $(GLINK ShiftExpression)
)
$(GRAMMAR
$(GNAME RelExpression):
$(GLINK ShiftExpression) $(D <) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D <)$(D =) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D >) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D >=) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !<>=) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !<>) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D <>) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D <>=) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !>) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !>=) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !<) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !<=) $(GLINK ShiftExpression)
)
$(GRAMMAR
$(GNAME InExpression):
$(GLINK ShiftExpression) $(D in) $(GLINK ShiftExpression)
$(GLINK ShiftExpression) $(D !in) $(GLINK ShiftExpression)
)
$(GRAMMAR
$(GNAME ShiftExpression):
$(GLINK AddExpression)
$(I ShiftExpression) $(D <)$(D <) $(GLINK AddExpression)
$(I ShiftExpression) $(D >)$(D >) $(GLINK AddExpression)
$(I ShiftExpression) $(D >)$(D >)$(D >) $(GLINK AddExpression)
)
$(GRAMMAR
$(GNAME AddExpression):
$(GLINK MulExpression)
$(I AddExpression) $(D +) $(GLINK MulExpression)
$(I AddExpression) $(D -) $(GLINK MulExpression)
$(GLINK CatExpression)
)
$(GRAMMAR
$(GNAME CatExpression):
$(GLINK AddExpression) $(D ~) $(GLINK MulExpression)
)
$(GRAMMAR
$(GNAME MulExpression):
$(GLINK UnaryExpression)
$(I MulExpression) $(D *) $(GLINK UnaryExpression)
$(I MulExpression) $(D /) $(GLINK UnaryExpression)
$(I MulExpression) $(D %) $(GLINK UnaryExpression)
)
$(GRAMMAR
$(GNAME UnaryExpression):
$(CODE_AMP) $(I UnaryExpression)
$(D ++) $(I UnaryExpression)
$(D --) $(I UnaryExpression)
$(D *) $(I UnaryExpression)
$(D -) $(I UnaryExpression)
$(D +) $(I UnaryExpression)
$(D !) $(I UnaryExpression)
$(GLINK ComplementExpression)
$(D $(LPAREN)) $(GLINK Type) $(D $(RPAREN) .) $(IDENTIFIER)
$(D $(LPAREN)) $(GLINK Type) $(D $(RPAREN) .) $(GLINK TemplateInstance)
$(GLINK DeleteExpression)
$(GLINK CastExpression)
$(GLINK PowExpression)
)
$(GRAMMAR
$(GNAME ComplementExpression):
$(D ~) $(GLINK UnaryExpression)
)
$(GRAMMAR
$(GNAME NewExpression):
$(D new) $(I AllocatorArguments)$(OPT) $(GLINK Type)
$(GLINK NewExpressionWithArgs)
$(GNAME NewExpressionWithArgs):
$(D new) $(I AllocatorArguments)$(OPT) $(GLINK Type) $(D [) $(GLINK AssignExpression) $(D ])
$(D new) $(I AllocatorArguments)$(OPT) $(GLINK Type) $(D $(LPAREN)) $(GLINK ArgumentList)$(OPT) $(D $(RPAREN))
$(GLINK NewAnonClassExpression)
$(GNAME AllocatorArguments):
$(D $(LPAREN)) $(GLINK ArgumentList)$(OPT) $(D $(RPAREN))
$(GNAME ArgumentList):
$(GLINK AssignExpression)
$(GLINK AssignExpression) $(D ,)
$(GLINK AssignExpression) $(D ,) $(I ArgumentList)
)
$(GRAMMAR
$(GNAME NewAnonClassExpression):
$(D new) $(GLINK AllocatorArguments)$(OPT) $(D class) $(I ClassArguments)$(OPT) $(GLINK SuperClass)$(OPT) $(GLINK Interfaces)$(OPT) $(GLINK AggregateBody)
$(GNAME ClassArguments):
$(D $(LPAREN)) $(GLINK ArgumentList)$(OPT) $(D $(RPAREN))
)
$(GRAMMAR
$(GNAME DeleteExpression):
$(D delete) $(GLINK UnaryExpression)
)
$(GRAMMAR
$(GNAME CastExpression):
$(D cast $(LPAREN)) $(GLINK Type) $(D $(RPAREN)) $(GLINK UnaryExpression)
$(D cast $(LPAREN)) $(GLINK TypeCtors)$(OPT) $(D $(RPAREN)) $(GLINK UnaryExpression)
)
$(GRAMMAR
$(GNAME PowExpression):
$(GLINK PostfixExpression)
$(GLINK PostfixExpression) $(D ^^) $(GLINK UnaryExpression)
)
$(GRAMMAR
$(GNAME PostfixExpression):
$(GLINK PrimaryExpression)
$(I PostfixExpression) $(D .) $(IDENTIFIER)
$(I PostfixExpression) $(D .) $(GLINK TemplateInstance)
$(I PostfixExpression) $(D .) $(GLINK NewExpression)
$(I PostfixExpression) $(D ++)
$(I PostfixExpression) $(D --)
$(I PostfixExpression) $(D $(LPAREN)) $(GLINK ArgumentList)$(OPT) $(D $(RPAREN))
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(D $(LPAREN)) $(GLINK ArgumentList)$(OPT) $(D $(RPAREN))
$(GLINK IndexExpression)
$(GLINK SliceExpression)
)
$(GRAMMAR
$(GNAME IndexExpression):
$(GLINK PostfixExpression) $(D [) $(GLINK ArgumentList) $(D ])
)
$(GRAMMAR
$(GNAME SliceExpression):
$(GLINK PostfixExpression) $(D [ ])
$(GLINK PostfixExpression) $(D [) $(GLINK AssignExpression) $(D ..) $(GLINK AssignExpression) $(D ])
)
$(GRAMMAR
$(GNAME PrimaryExpression):
$(IDENTIFIER)
$(D .) $(IDENTIFIER)
$(GLINK TemplateInstance)
$(D .) $(GLINK TemplateInstance)
$(LINK2 expression.html#this, $(D this))
$(LINK2 expression.html#super, $(D super))
$(LINK2 expression.html#null, $(D null))
$(D true)
$(D false)
$(D $)
$(GLINK_LEX IntegerLiteral)
$(GLINK_LEX FloatLiteral)
$(GLINK_LEX CharacterLiteral)
$(GLINK StringLiterals)
$(GLINK ArrayLiteral)
$(GLINK AssocArrayLiteral)
$(GLINK FunctionLiteral)
$(GLINK AssertExpression)
$(GLINK MixinExpression)
$(GLINK ImportExpression)
$(GLINK NewExpressionWithArgs)
$(GLINK BasicTypeX) $(D .) $(IDENTIFIER)
$(GLINK Typeof)
$(GLINK TypeidExpression)
$(GLINK IsExpression)
$(D $(LPAREN)) $(GLINK Expression) $(D $(RPAREN))
$(GLINK TraitsExpression)
$(GLINK SpecialKeyword)
)
$(GRAMMAR
$(GNAME StringLiterals):
$(GLINK_LEX StringLiteral)
$(I StringLiterals) $(GLINK_LEX StringLiteral)
)
$(GRAMMAR
$(GNAME ArrayLiteral):
$(D [) $(GLINK ArgumentList)$(OPT) $(D ])
)
$(GRAMMAR
$(GNAME AssocArrayLiteral):
$(D [) $(GLINK KeyValuePairs) $(D ])
$(GNAME KeyValuePairs):
$(GLINK KeyValuePair)
$(GLINK KeyValuePair) $(D ,) $(I KeyValuePairs)
$(GNAME KeyValuePair):
$(GLINK KeyExpression) $(D :) $(GLINK ValueExpression)
$(GNAME KeyExpression):
$(GLINK AssignExpression)
$(GNAME ValueExpression):
$(GLINK AssignExpression)
)
$(GRAMMAR
$(GNAME FunctionLiteral):
$(D function) $(GLINK Type)$(OPT) $(GLINK ParameterAttributes) $(OPT) $(GLINK FunctionLiteralBody)
$(D delegate) $(GLINK Type)$(OPT) $(GLINK ParameterMemberAttributes) $(OPT) $(GLINK FunctionLiteralBody)
$(GLINK ParameterMemberAttributes) $(GLINK FunctionLiteralBody)
$(GLINK FunctionLiteralBody)
$(GLINK Lambda)
)
$(GRAMMAR
$(GNAME ParameterAttributes):
$(GLINK Parameters) $(GLINK FunctionAttributes)$(OPT)
$(GNAME ParameterMemberAttributes):
$(GLINK Parameters) $(GLINK MemberFunctionAttributes)$(OPT)
$(GNAME FunctionLiteralBody):
$(GLINK BlockStatement)
$(GLINK FunctionContracts)$(OPT) $(GLINK BodyStatement)
$(GNAME Lambda):
$(D function) $(GLINK Type)$(OPT) $(GLINK ParameterAttributes) $(D =>) $(GLINK AssignExpression)
$(D delegate) $(GLINK Type)$(OPT) $(GLINK ParameterMemberAttributes) $(D =>) $(GLINK AssignExpression)
$(GLINK ParameterMemberAttributes) $(D =>) $(GLINK AssignExpression)
$(IDENTIFIER) $(D =>) $(GLINK AssignExpression)
)
$(GRAMMAR
$(GNAME AssertExpression):
$(D assert $(LPAREN)) $(GLINK AssignExpression) $(D $(RPAREN))
$(D assert $(LPAREN)) $(GLINK AssignExpression) $(D ,) $(GLINK AssignExpression) $(D $(RPAREN))
)
$(GRAMMAR
$(GNAME MixinExpression):
$(D mixin $(LPAREN)) $(GLINK AssignExpression) $(D $(RPAREN))
)
$(GRAMMAR
$(GNAME ImportExpression):
$(D import $(LPAREN)) $(GLINK AssignExpression) $(D $(RPAREN))
)
$(GRAMMAR
$(GNAME TypeidExpression):
$(D typeid $(LPAREN)) $(GLINK Type) $(D $(RPAREN))
$(D typeid $(LPAREN)) $(GLINK Expression) $(D $(RPAREN))
)
$(GRAMMAR
$(GNAME IsExpression):
$(D is $(LPAREN)) $(GLINK Type) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(D :) $(GLINK TypeSpecialization) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(D ==) $(GLINK TypeSpecialization) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(D :) $(GLINK TypeSpecialization) $(D ,) $(GLINK TemplateParameterList) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(D ==) $(GLINK TypeSpecialization) $(D ,) $(GLINK TemplateParameterList) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(IDENTIFIER) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(IDENTIFIER) $(D :) $(GLINK TypeSpecialization) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(IDENTIFIER) $(D ==) $(GLINK TypeSpecialization) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(IDENTIFIER) $(D :) $(GLINK TypeSpecialization) $(D ,) $(GLINK TemplateParameterList) $(D $(RPAREN))
$(D is $(LPAREN)) $(GLINK Type) $(IDENTIFIER) $(D ==) $(GLINK TypeSpecialization) $(D ,) $(GLINK TemplateParameterList) $(D $(RPAREN))
$(GNAME TypeSpecialization):
$(GLINK Type)
$(D struct)
$(D union)
$(D class)
$(D interface)
$(D enum)
$(D function)
$(D delegate)
$(D super)
$(D const)
$(D immutable)
$(D inout)
$(D shared)
$(D return)
$(D __parameters)
)
$(GRAMMAR
$(GNAME TraitsExpression):
$(D __traits) $(D $(LPAREN)) $(GLINK TraitsKeyword) $(D ,) $(GLINK TraitsArguments) $(D $(RPAREN))
$(GNAME TraitsKeyword):
$(TRAITS_LINK2 isAbstractClass)
$(TRAITS_LINK2 isArithmetic)
$(TRAITS_LINK2 isAssociativeArray)
$(TRAITS_LINK2 isFinalClass)
$(TRAITS_LINK2 isPOD)
$(TRAITS_LINK2 isNested)
$(TRAITS_LINK2 isFloating)
$(TRAITS_LINK2 isIntegral)
$(TRAITS_LINK2 isScalar)
$(TRAITS_LINK2 isStaticArray)
$(TRAITS_LINK2 isUnsigned)
$(TRAITS_LINK2 isVirtualFunction)
$(TRAITS_LINK2 isVirtualMethod)
$(TRAITS_LINK2 isAbstractFunction)
$(TRAITS_LINK2 isFinalFunction)
$(TRAITS_LINK2 isStaticFunction)
$(TRAITS_LINK2 isOverrideFunction)
$(TRAITS_LINK2 isRef)
$(TRAITS_LINK2 isOut)
$(TRAITS_LINK2 isLazy)
$(TRAITS_LINK2 hasMember)
$(TRAITS_LINK2 identifier)
$(TRAITS_LINK2 getAliasThis)
$(TRAITS_LINK2 getAttributes)
$(TRAITS_LINK2 getFunctionAttributes)
$(TRAITS_LINK2 getMember)
$(TRAITS_LINK2 getOverloads)
$(TRAITS_LINK2 getPointerBitmap)
$(TRAITS_LINK2 getProtection)
$(TRAITS_LINK2 getVirtualFunctions)
$(TRAITS_LINK2 getVirtualMethods)
$(TRAITS_LINK2 getUnitTests)
$(TRAITS_LINK2 parent)
$(TRAITS_LINK2 classInstanceSize)
$(TRAITS_LINK2 getVirtualIndex)
$(TRAITS_LINK2 allMembers)
$(TRAITS_LINK2 derivedMembers)
$(TRAITS_LINK2 isSame)
$(TRAITS_LINK2 compiles)
$(GNAME TraitsArguments):
$(GLINK TraitsArgument)
$(GLINK TraitsArgument) $(D ,) $(I TraitsArguments)
$(GNAME TraitsArgument):
$(GLINK AssignExpression)
$(GLINK Type)
)
$(GRAMMAR
$(GNAME SpecialKeyword):
$(D $(LINK2 traits.html#specialkeywords, __FILE__))
$(D $(LINK2 traits.html#specialkeywords, __MODULE__))
$(D $(LINK2 traits.html#specialkeywords, __LINE__))
$(D $(LINK2 traits.html#specialkeywords, __FUNCTION__))
$(D $(LINK2 traits.html#specialkeywords, __PRETTY_FUNCTION__))
)
$(H3 $(LNAME2 statement, Statement))
$(GRAMMAR
$(GNAME Statement):
$(D ;)
$(GLINK NonEmptyStatement)
$(GLINK ScopeBlockStatement)
$(GNAME NoScopeNonEmptyStatement):
$(GLINK NonEmptyStatement)
$(GLINK BlockStatement)
$(GNAME NoScopeStatement):
$(D ;)
$(GLINK NonEmptyStatement)
$(GLINK BlockStatement)
$(GNAME NonEmptyOrScopeBlockStatement):
$(GLINK NonEmptyStatement)
$(GLINK ScopeBlockStatement)
$(GNAME NonEmptyStatement):
$(GLINK NonEmptyStatementNoCaseNoDefault)
$(GLINK CaseStatement)
$(GLINK CaseRangeStatement)
$(GLINK DefaultStatement)
$(GNAME NonEmptyStatementNoCaseNoDefault):
$(GLINK LabeledStatement)
$(GLINK ExpressionStatement)
$(GLINK DeclarationStatement)
$(GLINK IfStatement)
$(GLINK WhileStatement)
$(GLINK DoStatement)
$(GLINK ForStatement)
$(GLINK ForeachStatement)
$(GLINK SwitchStatement)
$(GLINK FinalSwitchStatement)
$(GLINK ContinueStatement)
$(GLINK BreakStatement)
$(GLINK ReturnStatement)
$(GLINK GotoStatement)
$(GLINK WithStatement)
$(GLINK SynchronizedStatement)
$(GLINK TryStatement)
$(GLINK ScopeGuardStatement)
$(GLINK ThrowStatement)
$(GLINK AsmStatement)
$(GLINK PragmaStatement)
$(GLINK MixinStatement)
$(GLINK ForeachRangeStatement)
$(GLINK ConditionalStatement)
$(GLINK StaticAssert)
$(GLINK TemplateMixin)
$(GLINK ImportDeclaration)
)
$(GRAMMAR
$(GNAME ScopeStatement):
$(GLINK NonEmptyStatement)
$(GLINK BlockStatement)
)
$(GRAMMAR
$(GNAME ScopeBlockStatement):
$(GLINK BlockStatement)
)
$(GRAMMAR
$(GNAME LabeledStatement):
$(I Identifier) $(D :)
$(I Identifier) $(D :) $(PSSEMI)
$(I Identifier) $(D :) $(PSSEMI_PSCURLYSCOPE)
)
$(GRAMMAR
$(GNAME BlockStatement):
$(D { })
$(D {) $(GLINK StatementList) $(D })
$(GNAME StatementList):
$(PSSEMI_PSCURLYSCOPE)
$(PSSEMI_PSCURLYSCOPE) $(I StatementList)
)
$(GRAMMAR
$(GNAME ExpressionStatement):
$(EXPRESSION) $(D ;)
)
$(GRAMMAR
$(GNAME DeclarationStatement):
$(GLINK StorageClasses)$(OPT) $(GLINK Declaration)
)
$(GRAMMAR
$(GNAME IfStatement):
$(D if $(LPAREN)) $(GLINK IfCondition) $(D $(RPAREN)) $(GLINK ThenStatement)
$(D if $(LPAREN)) $(GLINK IfCondition) $(D $(RPAREN)) $(GLINK ThenStatement) $(D else) $(GLINK ElseStatement)
$(GNAME IfCondition):
$(EXPRESSION)
$(D auto) $(I Identifier) $(D =) $(EXPRESSION)
$(GLINK TypeCtors) $(I Identifier) $(D =) $(EXPRESSION)
$(GLINK TypeCtors)$(OPT) $(GLINK BasicType) $(GLINK Declarator) $(D =) $(EXPRESSION)
$(GNAME ThenStatement):
$(PSSCOPE)
$(GNAME ElseStatement):
$(PSSCOPE)
)
$(GRAMMAR
$(GNAME WhileStatement):
$(D while $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(PSSCOPE)
)
$(GRAMMAR
$(GNAME DoStatement):
$(D do) $(PSSCOPE) $(D while $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(D ;)
)
$(GRAMMAR
$(GNAME ForStatement):
$(D for $(LPAREN)) $(GLINK Initialize) $(I Test)$(OPT) $(D ;) $(GLINK Increment)$(OPT) $(D $(RPAREN)) $(PSSCOPE)
$(GNAME Initialize):
$(D ;)
$(PS0)
$(GNAME Test):
$(EXPRESSION)
$(GNAME Increment):
$(EXPRESSION)
)
$(GRAMMAR
$(GNAME ForeachStatement):
$(I Foreach) $(D $(LPAREN)) $(GLINK ForeachTypeList) $(D ;) $(GLINK ForeachAggregate) $(D $(RPAREN)) $(PS0)
$(GNAME Foreach):
$(D foreach)
$(D foreach_reverse)
$(GNAME ForeachTypeList):
$(GLINK ForeachType)
$(GLINK ForeachType) , $(I ForeachTypeList)
$(GNAME ForeachType):
$(GLINK ForeachTypeAttributes)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator)
$(GLINK ForeachTypeAttributes)$(OPT) $(I Identifier)
$(GNAME ForeachTypeAttributes)
$(GLINK ForeachTypeAttribute)
$(GLINK ForeachTypeAttribute) $(GLINK ForeachTypeAttributes)$(OPT)
$(GNAME ForeachTypeAttribute):
$(D ref)
$(GLINK2 declaration, TypeCtor)
$(GNAME ForeachAggregate):
$(EXPRESSION)
)
$(GRAMMAR
$(GNAME ForeachRangeStatement):
$(GLINK Foreach) $(D $(LPAREN)) $(GLINK ForeachType) $(D ;) $(GLINK LwrExpression) $(D ..) $(GLINK UprExpression) $(D $(RPAREN)) $(PSSCOPE)
$(GNAME LwrExpression):
$(EXPRESSION)
$(GNAME UprExpression):
$(EXPRESSION)
)
$(GRAMMAR
$(GNAME SwitchStatement):
$(D switch $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(PSSCOPE)
$(GNAME CaseStatement):
$(D case) $(GLINK ArgumentList) $(D :) $(PSSEMI_PSCURLYSCOPE_LIST)
$(GNAME CaseRangeStatement):
$(D case) $(GLINK FirstExp) $(D : .. case) $(GLINK LastExp) $(D :) $(PSSEMI_PSCURLYSCOPE_LIST)
$(GNAME FirstExp):
$(ASSIGNEXPRESSION)
$(GNAME LastExp):
$(ASSIGNEXPRESSION)
$(GNAME DefaultStatement):
$(D default :) $(PSSEMI_PSCURLYSCOPE_LIST)
$(GNAME ScopeStatementList):
$(GLINK StatementListNoCaseNoDefault)
$(GNAME StatementListNoCaseNoDefault):
$(GLINK StatementNoCaseNoDefault)
$(GLINK StatementNoCaseNoDefault) $(I StatementListNoCaseNoDefault)
$(GNAME StatementNoCaseNoDefault):
$(D ;)
$(GLINK NonEmptyStatementNoCaseNoDefault)
$(GLINK ScopeBlockStatement)
)
$(GRAMMAR
$(GNAME FinalSwitchStatement):
$(D final switch $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(PSSCOPE)
)
$(GRAMMAR
$(GNAME ContinueStatement):
$(D continue) $(I Identifier)$(OPT) $(D ;)
)
$(GRAMMAR
$(GNAME BreakStatement):
$(D break) $(I Identifier)$(OPT) $(D ;)
)
$(GRAMMAR
$(GNAME ReturnStatement):
$(D return) $(EXPRESSION)$(OPT) $(D ;)
)
$(GRAMMAR
$(GNAME GotoStatement):
$(D goto) $(I Identifier) $(D ;)
$(D goto) $(D default) $(D ;)
$(D goto) $(D case) $(D ;)
$(D goto) $(D case) $(EXPRESSION) $(D ;)
)
$(GRAMMAR
$(GNAME WithStatement):
$(D with) $(D $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(PSSCOPE)
$(D with) $(D $(LPAREN)) $(GLINK Symbol) $(D $(RPAREN)) $(PSSCOPE)
$(D with) $(D $(LPAREN)) $(GLINK TemplateInstance) $(D $(RPAREN)) $(PSSCOPE)
)
$(GRAMMAR
$(GNAME SynchronizedStatement):
$(D synchronized) $(PSSCOPE)
$(D synchronized $(LPAREN)) $(EXPRESSION) $(D $(RPAREN)) $(PSSCOPE)
)
$(GRAMMAR
$(GNAME TryStatement):
$(D try) $(PSSCOPE) $(GLINK Catches)
$(D try) $(PSSCOPE) $(GLINK Catches) $(GLINK FinallyStatement)
$(D try) $(PSSCOPE) $(GLINK FinallyStatement)
$(GNAME Catches):
$(GLINK LastCatch)
$(GLINK Catch)
$(GLINK Catch) $(I Catches)
$(GNAME LastCatch):
$(D catch) $(PS0)
$(GNAME Catch):
$(D catch $(LPAREN)) $(GLINK CatchParameter) $(D $(RPAREN)) $(PS0)
$(GNAME CatchParameter):
$(GLINK BasicType) $(I Identifier)
$(GNAME FinallyStatement):
$(D finally) $(PS0)
)
$(GRAMMAR
$(GNAME ThrowStatement):
$(D throw) $(EXPRESSION) $(D ;)
)
$(GRAMMAR
$(GNAME ScopeGuardStatement):
$(D scope(exit)) $(PSCURLYSCOPE)
$(D scope(success)) $(PSCURLYSCOPE)
$(D scope(failure)) $(PSCURLYSCOPE)
)
$(GRAMMAR
$(GNAME AsmStatement):
$(D asm) $(GLINK FunctionAttributes)$(OPT) $(D {) $(GLINK AsmInstructionList)$(OPT) $(D })
$(GNAME AsmInstructionList):
$(GLINK AsmInstruction) $(D ;)
$(GLINK AsmInstruction) $(D ;) $(I AsmInstructionList)
)
$(GRAMMAR
$(GNAME PragmaStatement):
$(GLINK Pragma) $(PSSEMI)
)
$(GRAMMAR
$(GNAME MixinStatement):
$(D mixin) $(D $(LPAREN)) $(ASSIGNEXPRESSION) $(D $(RPAREN)) $(D ;)
)
$(H3 $(LNAME2 iasm, Iasm))
$(GRAMMAR
$(GNAME AsmInstruction):
$(I Identifier) $(D :) $(I AsmInstruction)
$(D align) $(GLINK IntegerExpression)
$(D even)
$(D naked)
$(D db) $(I Operands)
$(D ds) $(I Operands)
$(D di) $(I Operands)
$(D dl) $(I Operands)
$(D df) $(I Operands)
$(D dd) $(I Operands)
$(D de) $(I Operands)
$(I Opcode)
$(I Opcode Operands)
$(GNAME Operands):
$(I Operand)
$(I Operand) $(D ,) $(I Operands)
)
$(GRAMMAR
$(GNAME IntegerExpression):
$(GLINK_LEX IntegerLiteral)
$(I Identifier)
)
$(GRAMMAR
$(GNAME Register):
$(D AL) $(D AH) $(D AX) $(D EAX)
$(D BL) $(D BH) $(D BX) $(D EBX)
$(D CL) $(D CH) $(D CX) $(D ECX)
$(D DL) $(D DH) $(D DX) $(D EDX)
$(D BP) $(D EBP)
$(D SP) $(D ESP)
$(D DI) $(D EDI)
$(D SI) $(D ESI)
$(D ES) $(D CS) $(D SS) $(D DS) $(D GS) $(D FS)
$(D CR0) $(D CR2) $(D CR3) $(D CR4)
$(D DR0) $(D DR1) $(D DR2) $(D DR3) $(D DR6) $(D DR7)
$(D TR3) $(D TR4) $(D TR5) $(D TR6) $(D TR7)
$(D ST)
$(D ST(0)) $(D ST(1)) $(D ST(2)) $(D ST(3)) $(D ST(4)) $(D ST(5)) $(D ST(6)) $(D ST(7))
$(D MM0) $(D MM1) $(D MM2) $(D MM3) $(D MM4) $(D MM5) $(D MM6) $(D MM7)
$(D XMM0) $(D XMM1) $(D XMM2) $(D XMM3) $(D XMM4) $(D XMM5) $(D XMM6) $(D XMM7)
)
$(GRAMMAR
$(GNAME Register64):
$(D RAX) $(D RBX) $(D RCX) $(D RDX)
$(D BPL) $(D RBP)
$(D SPL) $(D RSP)
$(D DIL) $(D RDI)
$(D SIL) $(D RSI)
$(D R8B) $(D R8W) $(D R8D) $(D R8)
$(D R9B) $(D R9W) $(D R9D) $(D R9)
$(D R10B) $(D R10W) $(D R10D) $(D R10)
$(D R11B) $(D R11W) $(D R11D) $(D R11)
$(D R12B) $(D R12W) $(D R12D) $(D R12)
$(D R13B) $(D R13W) $(D R13D) $(D R13)
$(D R14B) $(D R14W) $(D R14D) $(D R14)
$(D R15B) $(D R15W) $(D R15D) $(D R15)
$(D XMM8) $(D XMM9) $(D XMM10) $(D XMM11) $(D XMM12) $(D XMM13) $(D XMM14) $(D XMM15)
$(D YMM0) $(D YMM1) $(D YMM2) $(D YMM3) $(D YMM4) $(D YMM5) $(D YMM6) $(D YMM7)
$(D YMM8) $(D YMM9) $(D YMM10) $(D YMM11) $(D YMM12) $(D YMM13) $(D YMM14) $(D YMM15)
)
$(GRAMMAR
$(GNAME Operand):
$(I AsmExp)
$(GNAME AsmExp):
$(I AsmLogOrExp)
$(I AsmLogOrExp) $(D ?) $(I AsmExp) $(D :) $(I AsmExp)
$(GNAME AsmLogOrExp):
$(I AsmLogAndExp)
$(I AsmLogOrExp) $(D ||) $(I AsmLogAndExp)
$(GNAME AsmLogAndExp):
$(I AsmOrExp)
$(I AsmLogAndExp) $(D &&) $(I AsmOrExp)
$(GNAME AsmOrExp):
$(I AsmXorExp)
$(I AsmOrExp) $(D |) $(I AsmXorExp)
$(GNAME AsmXorExp):
$(I AsmAndExp)
$(I AsmXorExp) $(D ^) $(I AsmAndExp)
$(GNAME AsmAndExp):
$(I AsmEqualExp)
$(I AsmAndExp) $(D &) $(I AsmEqualExp)
$(GNAME AsmEqualExp):
$(I AsmRelExp)
$(I AsmEqualExp) $(D ==) $(I AsmRelExp)
$(I AsmEqualExp) $(D !=) $(I AsmRelExp)
$(GNAME AsmRelExp):
$(I AsmShiftExp)
$(I AsmRelExp) $(D <) $(I AsmShiftExp)
$(I AsmRelExp) $(D <)$(D =) $(I AsmShiftExp)
$(I AsmRelExp) $(D >) $(I AsmShiftExp)
$(I AsmRelExp) $(D >=) $(I AsmShiftExp)
$(GNAME AsmShiftExp):
$(I AsmAddExp)
$(I AsmShiftExp) $(D <)$(D <) $(I AsmAddExp)
$(I AsmShiftExp) $(D >>) $(I AsmAddExp)
$(I AsmShiftExp) $(D >>>) $(I AsmAddExp)
$(GNAME AsmAddExp):
$(I AsmMulExp)
$(I AsmAddExp) $(D +) $(I AsmMulExp)
$(I AsmAddExp) $(D -) $(I AsmMulExp)
$(GNAME AsmMulExp):
$(I AsmBrExp)
$(I AsmMulExp) $(D *) $(I AsmBrExp)
$(I AsmMulExp) $(D /) $(I AsmBrExp)
$(I AsmMulExp) $(D %) $(I AsmBrExp)
$(GNAME AsmBrExp):
$(I AsmUnaExp)
$(I AsmBrExp) $(D [) $(I AsmExp) $(D ])
$(GNAME AsmUnaExp):
$(I AsmTypePrefix) $(I AsmExp)
$(D offsetof) $(I AsmExp)
$(D seg) $(I AsmExp)
$(D +) $(I AsmUnaExp)
$(D -) $(I AsmUnaExp)
$(D !) $(I AsmUnaExp)
$(D ~) $(I AsmUnaExp)
$(I AsmPrimaryExp)
$(GNAME AsmPrimaryExp):
$(GLINK_LEX IntegerLiteral)
$(GLINK_LEX FloatLiteral)
$(D __LOCAL_SIZE)
$(D $)
$(GLINK Register)
$(GLINK Register) $(D :) $(I AsmExp)
$(GLINK Register64)
$(GLINK Register64) $(D :) $(I AsmExp)
$(I DotIdentifier)
$(D this)
$(GNAME DotIdentifier):
$(I Identifier)
$(I Identifier) $(D .) $(I DotIdentifier)
)
$(GRAMMAR
$(GNAME AsmTypePrefix):
$(D near ptr)
$(D far ptr)
$(D byte ptr)
$(D short ptr)
$(D int ptr)
$(D word ptr)
$(D dword ptr)
$(D qword ptr)
$(D float ptr)
$(D double ptr)
$(D real ptr)
)
$(H3 $(LNAME2 declaration, Declaration))
$(GRAMMAR
$(GNAME Declaration):