-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyntax-diagrams.tcl
2802 lines (2453 loc) · 64.5 KB
/
syntax-diagrams.tcl
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
#!/usr/bin/wish
#
# Syntax diagram generator for M2C, M2Sharp and M2J, status May 21, 2017
#
# This script is derived from the SQLite project's bubble-generator script.
# It is quite possibly the only such tool that can wrap-around diagrams so
# that they do not go off-page when inserting them into an ordinary A4 or
# US letter document. Thanks to the folks at the SQLite project for making
# their script available to the public.
#
# The present version of the script was cleaned up, enhanced, documented
# and modified by B.Kowarsch to become accessible to those unfamiliar with
# TCL/TK, and in particular to generate syntax diagrams for Modula-2 (R10).
# It is located at http://modula2.net/resources/modula2_syntax_diagrams.tcl
#
# Ideally the design would have been changed such that the script can read
# grammars from a text file in EBNF notation. Ideally, this script would
# have been rewritten in a more readable language, Modula-2 for instance.
# Due to time constraints, these tasks had to be left for some other time
# or for somebody else to do. In the meantime the documentation embedded
# herein should suffice even for those unfamiliar with TCL to modify the
# script to generate diagrams for their own grammars.
#
# THIS SOFTWARE COMES WITHOUT ANY WARRANTY OF ANY KIND. USE IS STRICTLY AT
# THE RISK OF THE USER. PERSONS WHO HAVE A LEGAL RIGHT TO SUE AUTHORS OF
# NO-WARRANTY-FREE-OF-CHARGE OPEN SOURCE SOFTWARE ARE SPECIFICALLY *NOT*
# GIVEN ANY PERMISSION TO USE THIS SOFTWARE. THE BOTTOM LINE IS : YOU MAY
# USE THIS SOFTWARE WITHOUT PERMISSION ANYWAY, BUT YOU *CANNOT* SUE THE
# AUTHORS FOR DAMAGES BECAUSE IF YOUR GOVERNMENT GRANTS YOU SUCH RIGHTS
# THEN YOU DID *NOT* HAVE PERMISSION TO USE THIS SOFTWARE TO BEGIN WITH.
# THUS, NO MATTER WHAT THE CIRCUMSTANCES, THE RISK IS ALWAYS YOURS ALONE.
#
# Top-level displays
#
toplevel .bb
canvas .c -bg white
pack .c -side top -fill both -expand 1
wm withdraw .
#
# ===========================================================================
# D O C U M E N T A T I O N
# ===========================================================================
#
# The grammar is encoded as a nested TCL list structure of the general form:
#
# { production1 { ... } production2 { ... } ... }
#
# Production rules can be translated from (ANTLR) EBNF to TCL list items as
# follows:
#
# Simple term
#
# production : term ;
# => production { line term }
#
# Sequence and group
#
# production : term1 term2 ;
# => production { line term1 term2 }
#
# Alternative
#
# production : term1 | term2 ;
# => production { or term1 term2 }
#
# Optional term
#
# production : term? ;
# => production { opt term }
# => production { optx term }
#
# opt renders the bypass line in the main path
# optx renders the term in the main path
#
# Terms that occur one or more times
#
# production : term+ ;
# => production { loop { line term } {} }
#
# Terms that occur zero or more times
#
# production : term* ;
# => production { loop {} { nil term } }
#
# Causing diagrams to wrap-around
#
# production : term1 /* wrap here */ term2 /* wrap here */ term3 ;
# => production { stack {line term1} {line term2} {line term3} }
#
# Rendering of terminals, non-terminals and tokens
#
# Symbols are rendered according to their category:
# (1) reserved words, names in all uppercase letters
# (2) reserved identifiers, names in all uppercase letters preceded by /
# (3) other terminals, mixed case names with a leading uppercase letter
# (4) non-terminals, mixed case names with a leading lowercase letter
# (5) single letter tokens, a single letter or a range eg. a..z / A..Z
# (6) special symbol tokens, any other characters or character sequences
#
# Special names for tokens that TCL cannot handle verbatim
#
# BACKSLASH is rendered as \
# SINGLE_QUOTE is rendered as '
# DOUBLE_QUOTE is rendered as "
# LEFT_BRACE is rendered as {
# RIGHT_BRACE is rendered as }
#
# Rendering parameters
#
# RES_WORD_FONT - font/size/style used to render reserved words
# RES_IDENT_FONT - font/size/style used to render reserved identifiers
# TERM_FONT - font/size/style used to render any other terminals
# NON_TERM_FONT - font/size/style used to render non-terminals
# TOKEN_FONT - font/size/style used to render tokens
# RADIUS - turn radius for arcs
# HSEP - horizontal separation
# VSEP - vertical separation
# LWIDTH -line width
#
# Pre-requisites
#
# TCL and TK need to be installed
#
# Running the script
#
# the most fool-proof method to run this script is to call the wish shell
# with the name of the script as an argument:
#
# $ wish modula2_syntax_diagrams.tcl
#
# in the window that appears, click on the top button "Draw All Diagrams"
#
# Diagrams will be written into postscript files in the working directory
#
# ===========================================================================
#
# ===========================================================================
# M2C/M2Sharp/M2J Modula-2 grammar
# ===========================================================================
# To reuse this diagram generator for other languages, replace the following
# section with a definition of the grammar of the target language.
#
# Do NOT add comments or blank lines within a production rule's definition!
#
# ---------------------------------------------------------------------------
# Non-Terminal Symbols
# ---------------------------------------------------------------------------
#
set non_terminals {}
# (1) Compilation Unit
lappend non_terminals compilationUnit {
or
{line definitionModule}
{line implementationModule}
{line programModule}
}
# ------------------------
# Definition Module Syntax
# ------------------------
# (2) Definition Module
lappend non_terminals definitionModule {
stack
{line DEFINITION MODULE moduleIdent ;}
{line {loop nil {nil import nil}} {loop nil {nil definition nil}}
END moduleIdent .}
}
# (2.1) Module Identifier
lappend non_terminals moduleIdent {
line Ident
}
# (3a) Import (PIM)
lappend non_terminals importPIM {
or
qualifiedImport
unqualifiedImport
}
# (3b) Import (Ext)
lappend non_terminals import {
line qualifiedImport
}
# (3.1) Qualified Import
lappend non_terminals qualifiedImport {
line IMPORT moduleList
}
# (3.2) Module List
lappend non_terminals moduleList {
line identList
}
# (4) Unqualified Import
lappend non_terminals unqualifiedImport {
line FROM moduleIdent IMPORT identList
}
# (5) Identifier List
lappend non_terminals identList {
loop Ident ,
}
# (6) Definition
lappend non_terminals definition {
line {
or
{line CONST {loop {line constDefinition ;} nil} }
{line TYPE {loop {line typeDefinition ;} nil} }
{line VAR {loop {line varDefinition ;} nil} }
{line procedureHeader ;}
}
}
# (6.1) Variable Definition
lappend non_terminals varDefinition {
line variableDeclaration
}
# (7) Constant Definition
lappend non_terminals constDefinition {
line Ident = constExpression
}
# (7.1) Constant Expression
lappend non_terminals constExpression {
line expression
}
# (8a) Type Definition (PIM)
lappend non_terminals typeDefinitionPIM {
line Ident {optx = type}
}
# (8b) Type Definition (Ext)
lappend non_terminals typeDefinition {
line Ident = {or type OPAQUE}
}
# (9) Type
lappend non_terminals type {
line {
or
{line derivedOrSubrangeType}
{line enumType}
{line setType}
{line arrayType}
{line recordType}
{line pointerType}
{line procedureType}
}
}
# (10.1a) Derived Type or Subrange Type (PIM)
lappend non_terminals derivedOrSubrangeTypePIM {
or
{line typeIdent {optx range}}
range
}
# (10.1b) Derived Type or Subrange Type (Ext)
lappend non_terminals derivedOrSubrangeType {
line {optx range OF} typeIdent
}
# (10.2) Type Identifier
lappend non_terminals typeIdent {
line qualident
}
# (10.3) Qualified Identifier
lappend non_terminals qualident {
loop ident .
}
# (10.4) Range
lappend non_terminals range {
line [ constExpression .. constExpression ]
}
# (11) Enumeration Type
lappend non_terminals enumType {
line ( identList )
}
# (12) Set Type
lappend non_terminals setType {
line SET OF countableType
}
# (13) Countable Type
lappend non_terminals countableType {
or
range
enumType
{line typeIdent {optx range}}
}
# (14) Array Type
lappend non_terminals arrayType {
line ARRAY {loop countableType ,} OF type
}
# (15a) Record Type (PIM)
lappend non_terminals recordTypePIM {
line variantRecordType
}
# (15b) Record Type (Extended)
lappend non_terminals recordType {
line extensibleRecordType
}
# (15a.1) Variant Record Type
lappend non_terminals variantRecordType {
line RECORD variantfieldListSeq END
}
# (15a.2) Variant Record Field List Sequence
lappend non_terminals variantFieldListSeq {
loop variantFieldList ;
}
# (15a.3) Variant Record Field List
lappend non_terminals variantFieldList {
or
fieldList
variantFields
}
# (15a.4) Variant Fields
lappend non_terminals variantFields {
stack
{line CASE {optx Ident} : typeIdent OF {loop variant |}}
{line {optx ELSE fieldListSequence} END}
}
# (15a.5) Variant
lappend non_terminals variant {
line caseLabelList : variantFieldListSeq
}
# (15.1) Case Label List
lappend non_terminals caseLabelList {
loop caseLabels ,
}
# (15.2) Case Labels
lappend non_terminals caseLabels {
line constExpression {optx .. constExpression}
}
# (15b.1) Extensible Record Type
lappend non_terminals extensibleRecordType {
line RECORD {optx ( baseType )} fieldListSequence END
}
# (15b.2) Base Type
lappend non_terminals baseType {
line typeIdent
}
# (15.3) Field List Sequence
lappend non_terminals fieldListSequence {
loop fieldList ;
}
# (15.4) Field List
lappend non_terminals fieldList {
line variableDeclaration
}
# (16) Pointer Type
lappend non_terminals pointerType {
line POINTER TO type
}
# (17) Procedure Type
lappend non_terminals procedureType {
line PROCEDURE {optx ( {loop formalType ,} )} {optx : returnedType}
}
# (18) Formal Type
lappend non_terminals formalType {
or
simpleFormalType
attributedFormalType
}
# (18.1a) Simple Formal Type (PIM)
lappend non_terminals simpleFormalTypePIM {
line {optx ARRAY OF} typeIdent
}
# (18.1b) Simple Formal Type (Ext)
lappend non_terminals simpleFormalType {
line {optx {or ARGLIST ARRAY} OF} typeIdent
}
# (18.2a) Attributed Formal Type (PIM)
lappend non_terminals attributedFormalTypePIM {
line VAR simpleFormalType
}
# (18.2b) Attributed Formal Type (Ext)
lappend non_terminals attributedFormalType {
line {or CONST VAR} simpleFormalType
}
# (18.3) Returned Type
lappend non_terminals returnedType {
line typeIdent
}
# (19) Procedure Header
lappend non_terminals procedureHeader {
line PROCEDURE procedureSignature
}
# (20) Procedure Signature
lappend non_terminals procedureSignature {
line Ident {optx ( {loop formalParams ;} ) {optx : returnedType}}
}
# (21) Formal Parameters
lappend non_terminals formalParams {
or
simpleFormalParams
attribFormalParams
}
# (22) Simple Formal Parameters
lappend non_terminals simpleFormalParams {
line identList : formalType
}
# (23a) Attributed Formal Parameters (PIM)
lappend non_terminals attribFormalParamsPIM {
line VAR simpleFormalParams
}
# (23b) Attributed Formal Parameters (Ext)
lappend non_terminals attribFormalParams {
line {or CONST VAR} simpleFormalParams
}
# ----------------------------------------
# Implementation and Program Module Syntax
# ----------------------------------------
# (24) Implementation Module
lappend non_terminals implementationModule {
line IMPLEMENTATION programModule
}
# (25a) Program Module (PIM)
lappend non_terminals programModulePIM {
stack
{line MODULE moduleIdent {optx modulePriority} ;}
{line {loop nil {nil import nil}} block moduleIdent .}
}
# (25b) Program Module (Ext)
lappend non_terminals programModule {
stack
{line MODULE moduleIdent ;}
{line {loop nil {nil import nil}} block moduleIdent .}
}
# (26) Module Priority
lappend non_terminals modulePriority {
line [ constExpression ]
}
# (27) Block
lappend non_terminals block {
line {loop nil {nil declaration nil}}
{optx BEGIN statementSequence} END
}
# (28a) Declaration (PIM)
lappend non_terminals declarationPIM {
line {
or
{line CONST {loop {line constDeclaration ;} nil} }
{line TYPE {loop {line typeDeclaration ;} nil} }
{line VAR {loop {line variableDeclaration ;} nil} }
{line procedureDeclaration ;}
{line moduleDeclaration ;}
}
}
# (28b) Declaration (Ext)
lappend non_terminals declaration {
line {
or
{line CONST {loop {line constDeclaration ;} nil} }
{line TYPE {loop {line typeDeclaration ;} nil} }
{line VAR {loop {line variableDeclaration ;} nil} }
{line procedureDeclaration ;}
}
}
# (29a) Type Declaration (PIM)
lappend non_terminals typeDeclarationPIM {
line Ident = type
}
# (29b) Type Declaration (Ext)
lappend non_terminals typeDeclaration {
line Ident = {or type varSizeRecordType}
}
# (29.1) Variable Size Record Type
lappend non_terminals varSizeRecordType {
line VAR RECORD fieldListSequence IN indeterminateField END
}
# (29.2) Indeterminate Field
lappend non_terminals indeterminateField {
line Ident : ARRAY sizeFieldIdent OF typeIdent
}
# (29.3) Size Field Identifier
lappend non_terminals sizeFieldIdent {
line Ident
}
# (30) Variable Declaration
lappend non_terminals variableDeclaration {
line identList : Type
}
# (31) Procedure Declaration
lappend non_terminals procedureDeclaration {
line procedureHeader ; block Ident
}
# (32) Module Declaration
lappend non_terminals moduleDeclaration {
stack
{line MODULE moduleIdent {optx modulePriority} ;}
{line {loop nil {nil import nil}} {optx export} block moduleIdent}
}
# (33) Export
lappend non_terminals export {
line EXPORT {optx QUALIFIED} identList ;
}
# (34) Statement Sequence
lappend non_terminals statementSequence {
loop statement ;
}
# (35a) Statement (PIM)
lappend non_terminals statementPIM {
line {
or
assignmentOrProcCall
returnStatement
withStatement
ifStatement
caseStatement
loopStatement
whileStatement
repeatStatement
forStatement
EXIT
}
}
# (35b) Statement (Ext)
lappend non_terminals statement {
line {
or
assignmentOrProcCall
returnStatement
ifStatement
caseStatement
loopStatement
whileStatement
repeatStatement
forStatement
EXIT
}
}
# (36a) Assignment or Procedure Call (PIM)
lappend non_terminals assignmentOrProcCallPIM {
line designator {
or
{line := expression}
actualParameters
nil
}
}
# (36b) Assignment or Procedure Call (Ext)
lappend non_terminals assignmentOrProcCall {
line designator {
or
incOrDecSuffix
{line := expression}
actualParameters
nil
}
}
# (36.1) Increment Or Decrement Suffix
lappend non_terminals incOrDecSuffix {
or ++ --
}
# (37) Actual Parameters
lappend non_terminals actualParameters {
line ( {optx expressionList} )
}
# (38) Expression List
lappend non_terminals expressionList {
loop expression ,
}
# (39) RETURN Statement
lappend non_terminals returnStatement {
line RETURN {optx expression}
}
# (40) WITH Statement
lappend non_terminals withStatement {
line WITH designator DO statementSequence END
}
# (41) IF Statement
lappend non_terminals ifStatement {
stack
{line IF boolExpression THEN statementSequence}
{optx {loop {line ELSIF boolExpression THEN statementSequence} nil}}
{line {optx ELSE statementSequence} END}
}
# (41.1) Boolean Expression
lappend non_terminals boolExpression {
line expression
}
# (42a) CASE Statement (PIM)
lappend non_terminals caseStatementPIM {
stack
{line CASE expression OF {loop {line case |} nil}}
{line {optx ELSE statementSequence} END}
}
# (42b) CASE Statement (Ext)
lappend non_terminals caseStatement {
stack
{line CASE expression OF {loop {line | case} nil}}
{line {optx ELSE statementSequence} END}
}
# (42.1) Case
lappend non_terminals case {
line caseLabelList : statementSequence
}
# (43) LOOP Statement
lappend non_terminals loopStatement {
line LOOP statementSequence END
}
# (44) WHILE Statement
lappend non_terminals whileStatement {
line WHILE boolExpression DO statementSequence END
}
# (45) REPEAT Statement
lappend non_terminals repeatStatement {
line REPEAT statementSequence UNTIL boolExpression
}
# (46) FOR Statement
lappend non_terminals forStatement {
stack
{line FOR forLoopVariant := startValue TO endValue}
{line {optx BY stepValue} DO statementSequence END}
}
# (46.1) FOR Loop Variant
lappend non_terminals forLoopVariant {
line Ident
}
# (46.2) Start Value, End Value
lappend non_terminals startValue {
line ordinalExpression
}
# (46.3) Ordinal Expression
lappend non_terminals ordinalExpression {
line expression
}
# (46.4) Step Value
lappend non_terminals stepValue {
line constExpression
}
# (47) Designator
lappend non_terminals designator {
line qualident {loop nil {nil selector nil}}
}
# (48) Selector
lappend non_terminals selector {
or
^
{line . Ident}
{line [ expressionList ]}
}
# (49) Expression
lappend non_terminals expression {
line simpleExpression {optx operL1 simpleExpression}
}
# (49.1) Level-1 Operator
lappend non_terminals operL1 {
or
= # < <= > >= IN
}
# (50) Simple Expression
lappend non_terminals simpleExpression {
line {or + -} {loop term operL2}
}
# (50.1a) Level-2 Operator (PIM)
lappend non_terminals operL2PIM {
or + - OR
}
# (50.1b) Level-2 Operator (Ext)
lappend non_terminals operL2 {
or + - OR setDiffOp
}
# (50.2) Set Difference Operator
lappend non_terminals setDiffOp {
line BACKSLASH
}
# (51) Term
lappend non_terminals term {
loop simpleTerm operL3
}
# (51.1) Level-3 Operator
lappend non_terminals operL3 {
or * / DIV MOD AND
}
# (52) Simple Term
lappend non_terminals simpleTerm {
line {optx NOT} factor
}
# (53) Factor
lappend non_terminals factor {
or
NumberLiteral
StringLiteral
setValue
designatorOrFuncCall
{line ( expression )}
}
# (54) Designator Or Function Call
lappend non_terminals designatorOrFuncCall {
line designator {or setValue {line ( {optx expressionList} )} nil}
}
# (55) Set Value
lappend non_terminals setValue {
line LBRACE {loop element ,} RBRACE
}
# (56) Element
lappend non_terminals element {
or
{line constExpression {optx .. constExpression}}
{line runtimeExpression}
}
# (56.1) Runtime Expression
lappend non_terminals runtimeExpression {
line expression
}
# ---------------------------------------------------------------------------
# Terminal Symbols
# ---------------------------------------------------------------------------
#
set terminals {}
# ------------------
# (1) Reserved Words
# ------------------
set res_words {}
# (1.1) AND
lappend res_words AND {
line AND
}
# (1.2) ARGLIST (Ext only)
lappend res_words ARGLIST {
line ARGLIST
}
# (1.3) ARRAY
lappend res_words ARRAY {
line ARRAY
}
# (1.4) BEGIN
lappend res_words BEGIN {
line BEGIN
}
# (1.5) BY
lappend res_words BY {
line BY
}
# (1.6) CASE
lappend res_words CASE {
line CASE
}
# (1.7) CONST
lappend res_words CONST {
line CONST
}
# (1.8) DEFINITION
lappend res_words DEFINITION {
line DEFINITION
}
# (1.9) DIV
lappend res_words DIV {
line DIV
}
# (1.10) DO
lappend res_words DO {
line DO
}
# (1.11) ELSE
lappend res_words ELSE {
line ELSE
}
# (1.12) ELSIF
lappend res_words ELSIF {
line ELSIF
}
# (1.13) END
lappend res_words END {
line END
}
# (1.14) EXIT
lappend res_words EXIT {
line EXIT
}
# (1.15) EXPORT (PIM only)
lappend res_words EXPORT {
line EXPORT
}
# (1.16) FOR
lappend res_words FOR {
line FOR
}
# (1.17) FROM (PIM only)
lappend res_words FROM {
line FROM
}
# (1.18) IF
lappend res_words IF {
line IF
}
# (1.19) IMPLEMENTATION
lappend res_words IMPLEMENTATION {
line IMPLEMENTATION
}
# (1.20) IMPORT
lappend res_words IMPORT {
line IMPORT
}
# (1.21) IN
lappend res_words IN {
line IN
}
# (1.22) LOOP
lappend res_words LOOP {
line LOOP
}
# (1.23) MOD
lappend res_words MOD {
line MOD
}
# (1.24) MODULE
lappend res_words MODULE {
line MODULE
}
# (1.25) NOT
lappend res_words NOT {
line NOT
}
# (1.26) OF
lappend res_words OF {
line OF
}
# (1.27) OPAQUE (Ext only)
lappend res_words OPAQUE {
line OPAQUE
}
# (1.28) OR
lappend res_words OR {
line OR
}
# (1.29) POINTER
lappend res_words POINTER {
line POINTER
}
# (1.30) PROCEDURE
lappend res_words PROCEDURE {
line PROCEDURE
}
# (1.31) QUALIFIED (PIM only)
lappend res_words QUALIFIED {
line QUALIFIED
}
# (1.32) RECORD
lappend res_words RECORD {
line RECORD
}
# (1.33) REPEAT
lappend res_words REPEAT {
line REPEAT
}
# (1.34) RETURN
lappend res_words RETURN {
line RETURN
}
# (1.35) SET
lappend res_words SET {
line SET
}
# (1.36) THEN
lappend res_words THEN {