1/*
2	File:		antlrMPW.r
3	Target:		antlr 133MR
4	Created:    Monday, June 15, 1998 4:41:11 AM
5	Author:		Kenji Tanaka (kentar@osa.att.ne.jp)
6*/
7
8#include "cmdo.r"
9
10resource 'cmdo' (128, "Antlr") {
11	{	/* array dialogs: 5 elements */
12		/* [1] */
13		295,
14		"ANTLR -- Purdue Compiler Construction To"
15		"ol Set (PCCTS) LL(k) parser generator.",
16		{	/* array itemArray: 12 elements */
17			/* [1] */
18			NotDependent {
19
20			},
21			CheckOption {
22				NotSet,
23				{18, 23, 33, 223},
24				"Read grammar from stdin",
25				"-",
26				"Read grammar from stdin."
27			},
28			/* [2] */
29			NotDependent {
30
31			},
32			CheckOption {
33				NotSet,
34				{38, 23, 53, 310},
35				"Send grammar.c/grammar.cpp to stdout",
36				"-stdout",
37				"Send grammar.c/grammar.cpp to stdout."
38			},
39			/* [3] */
40			NotDependent {
41
42			},
43			MultiFiles {
44				"Grammar File(s)�",
45				"Choose the grammar specification files y"
46				"ou wish to have ANTLR process.",
47				{79, 22, 98, 152},
48				"Grammar specification:",
49				"",
50				MultiInputFiles {
51					{	/* array MultiTypesArray: 1 elements */
52						/* [1] */
53						text
54					},
55					".g",
56					"Files ending in .g",
57					"All text files"
58				}
59			},
60			/* [4] */
61			NotDependent {
62
63			},
64			Files {
65				DirOnly,
66				OptionalFile {
67					{58, 168, 74, 298},
68					{79, 169, 98, 299},
69					"Output Directory",
70					":",
71					"-o",
72					"",
73					"Choose the directory where ANTLR will pu"
74					"t its output.",
75					dim,
76					"Output Directory�",
77					"",
78					""
79				},
80				NoMore {
81
82				}
83			},
84			/* [5] */
85			NotDependent {
86
87			},
88			Redirection {
89				StandardOutput,
90				{126, 27}
91			},
92			/* [6] */
93			NotDependent {
94
95			},
96			Redirection {
97				DiagnosticOutput,
98				{126, 178}
99			},
100			/* [7] */
101			NotDependent {
102
103			},
104			TextBox {
105				gray,
106				{117, 20, 167, 300},
107				"Redirection"
108			},
109			/* [8] */
110			NotDependent {
111
112			},
113			NestedDialog {
114				5,
115				{20, 324, 40, 460},
116				"Parse Options�",
117				"Parse control options may be set with th"
118				"is button."
119			},
120			/* [9] */
121			NotDependent {
122
123			},
124			NestedDialog {
125				2,
126				{50, 324, 70, 460},
127				"Generate Options�",
128				"Various command line options may be set "
129				"with this button."
130			},
131			/* [10] */
132			NotDependent {
133
134			},
135			NestedDialog {
136				3,
137				{78, 324, 98, 460},
138				"More Options�",
139				"Antlr has ALOT of options. There are eve"
140				"n more to be found with this button."
141			},
142			/* [11] */
143			NotDependent {
144
145			},
146			NestedDialog {
147				4,
148				{106, 324, 126, 460},
149				"Rename Options�",
150				"Options for renaming output files may be"
151				" set with this button."
152			},
153			/* [12] */
154			NotDependent {
155
156			},
157			VersionDialog {
158				VersionString {
159					"1.33MR"
160				},
161				"PCCTS was written by Terence Parr, Russe"
162				"ll Quong, Will Cohen, and Hank Dietz: 19"
163				"89-1998. MPW port by Scott Haney.",
164				noDialog
165			}
166		},
167		/* [2] */
168		295,
169		"Use this dialog to specify command line "
170		"Generate Options.",
171		{	/* array itemArray: 15 elements */
172			/* [1] */
173			NotDependent {
174
175			},
176			CheckOption {
177				NotSet,
178				{18, 25, 33, 225},
179				"Generate C++ code",
180				"-CC",
181				"Generate C++ output from both ANTLR and "
182				"DLG."
183			},
184			/* [2] */
185			NotDependent {
186
187			},
188			CheckOption {
189				NotSet,
190				{38, 25, 53, 225},
191				"Generate ASTs",
192				"-gt",
193				"Generate code for Abstract-Syntax-Trees "
194				"(ASTs)."
195			},
196			/* [3] */
197			NotDependent {
198
199			},
200			CheckOption {
201				NotSet,
202				{58, 25, 73, 225},
203				"Generate line info",
204				"-gl",
205				"If this option is checked, ANTLR will ge"
206				"nerate line info about grammaractions, t"
207				"hereby making debugging easier since com"
208				"pile errors will point to the grammar fi"
209				"le."
210			},
211			/* [4] */
212			NotDependent {
213
214			},
215			CheckOption {
216				NotSet,
217				{78, 25, 93, 225},
218				"Generate error classes",
219				"-ge",
220				"If this option is checked, ANTLR will ge"
221				"nerate an error class foreach non-termin"
222				"al."
223			},
224			/* [5] */
225			NotDependent {
226
227			},
228			CheckOption {
229				NotSet,
230				{98, 25, 113, 225},
231				"Don't generate Code",
232				"-gc",
233				"If this option is checked, ANTLR will ge"
234				"nerate no code, i.e. it will only perfor"
235				"m analysis on the grammar."
236			},
237			/* [6] */
238			NotDependent {
239
240			},
241			CheckOption {
242				NotSet,
243				{118, 25, 133, 225},
244				"Delay lookahead fetches",
245				"-gk",
246				"If this option is checked, ANTLR will ge"
247				"nerate a parser that delays lookahead fe"
248				"tches until needed."
249			},
250			/* [7] */
251			NotDependent {
252
253			},
254			CheckOption {
255				NotSet,
256				{138, 25, 153, 225},
257				"Use newAST(...)",
258				"-newAST",
259				"In C++ mode use \"newAST(...)\" rather tha"
260				"n \"new AST(...)\""
261			},
262			/* [8] */
263			NotDependent {
264
265			},
266			CheckOption {
267				NotSet,
268				{18, 235, 33, 435},
269				"Support parse traces",
270				"-gd",
271				"If this option is checked, ANTLR inserts"
272				" code in each parsing function to provid"
273				"e for user-defined handling of a detaile"
274				"d parse trace. The code consists of call"
275				"s to zzTRACEIN and zzTRACEOUT."
276			},
277			/* [9] */
278			NotDependent {
279
280			},
281			CheckOption {
282				NotSet,
283				{38, 235, 53, 435},
284				"Generate cross-references",
285				"-cr",
286				"If this option is checked, ANTLR will ge"
287				"nerate a cross reference for all rules. "
288				"For each rule it will print a list of al"
289				"l other rules that refrence it."
290			},
291			/* [10] */
292			NotDependent {
293
294			},
295			CheckOption {
296				NotSet,
297				{58, 235, 73, 435},
298				"Don't create Lexer files",
299				"-gx",
300				"If this option is checked, ANTLR will no"
301				"t generate DLG-related output files. Thi"
302				"s option should be used if one wants a c"
303				"ustom lexical analyzer or if one has mad"
304				"e changes to the grammar not affecting t"
305				"he lexical structure."
306			},
307			/* [11] */
308			NotDependent {
309
310			},
311			CheckOption {
312				NotSet,
313				{78, 235, 93, 460},
314				"Don't generate token expr sets",
315				"-gs",
316				"If this option is checked, ANTLR will no"
317				"t generate sets for token expression set"
318				"s; instead, it will generate a || separa"
319				"ted sequence of LA(1)==token #. "
320			},
321			/* [12] */
322			NotDependent {
323
324			},
325			CheckOption {
326				NotSet,
327				{98, 235, 113, 460},
328				"Generate ANSI-compatible",
329				"-ga",
330				"Generate ANSI-compatible code (default=F"
331				"ALSE)"
332			},
333			/* [13] */
334			NotDependent {
335
336			},
337			CheckOption {
338				NotSet,
339				{118, 235, 133, 460},
340				"Don't generate tokens.h",
341				"-gxt",
342				"Do not generate tokens.h (default=FALSE)"
343			},
344			/* [13] */
345			NotDependent {
346
347			},
348			CheckOption {
349				NotSet,
350				{138, 235, 153, 460},
351				"Provide \"(alpha)? beta\" info",
352				"-alpha",
353				"Provide additional information for \"(alpha)? beta\" error messages"
354			},
355			/* [14] */
356			NotDependent {
357
358			},
359			RegularEntry {
360				"Tabs(1 to 8):",
361				{162, 23, 177, 117},
362				{163, 125, 179, 196},
363				"",
364				keepCase,
365				"-tab",
366				"Width of tabs (1 to 8) for grammar.c/gra"
367				"mmar.cpp files."
368			},
369			/* [15] */
370			NotDependent {
371
372			},
373			RegularEntry {
374				"Function Prefix:",
375				{161, 236, 177, 342},
376				{162, 345, 177, 454},
377				"",
378				keepCase,
379				"-gp",
380				"Prefix all generated rule functions with"
381				" a string."
382			}
383		},
384		/* [3] */
385		295,
386		"Use this dialog to specify still more co"
387		"mmand line options.",
388		{	/* array itemArray: 12 elements */
389			/* [1] */
390			NotDependent {
391
392			},
393			RadioButtons {
394				{	/* array radioArray: 3 elements */
395					/* [1] */
396					{38, 25, 53, 85}, "None", "", Set, "When this option is selected, ANTLR will"
397					" not print the grammar to stdout.",
398					/* [2] */
399					{38, 100, 53, 160}, "Yes", "-p", NotSet, "When this option is selected, ANTLR will"
400					" print the grammar, stripped of all acti"
401					"ons and comments, to stdout.",
402					/* [3] */
403					{38, 175, 53, 235}, "More", "-pa", NotSet, "When this option is selected, ANTLR will"
404					" print the grammar, stripped of all acti"
405					"ons and comments, to stdout. It will als"
406					"o annotate the output with the first set"
407					"s determined from grammar analysis."
408				}
409			},
410			/* [2] */
411			NotDependent {
412
413			},
414			TextBox {
415				gray,
416				{28, 15, 60, 250},
417				"Grammar Printing"
418			},
419			/* [3] */
420			NotDependent {
421
422			},
423			RadioButtons {
424				{	/* array radioArray: 3 elements */
425					/* [1] */
426					{88, 25, 103, 85}, "Low", "", Set, "When this option is selected, ANTLR will"
427					" show ambiguities/errors in low detail.",
428					/* [2] */
429					{88, 100, 103, 160}, "Medium", "-e2", NotSet, "When this option is selected, ANTLR will"
430					" show ambiguities/errors in more detail.",
431					/* [3] */
432					{88, 175, 103, 235}, "High", "-e3", NotSet, "When this option is selected, ANTLR will"
433					" show ambiguities/errors in excruciating"
434					" detail."
435				}
436			},
437			/* [4] */
438			NotDependent {
439
440			},
441			TextBox {
442				gray,
443				{78, 15, 110, 250},
444				"Error reporting"
445			},
446			/* [5] */
447			NotDependent {
448
449			},
450			CheckOption {
451				NotSet,
452				{130, 22, 145, 222},
453				"More warnings",
454				"-w2",
455				"If this option is checked, ANTLR will wa"
456				"rn if semantic predicates and/or (�)? bl"
457				"ocks are assumed to cover ambiguous alte"
458				"rnatives."
459			},
460			/* [6] */
461			NotDependent {
462
463			},
464			RegularEntry {
465				"Report when tnode usage exceeds:",
466				{162, 23, 180, 253},
467				{162, 255, 178, 326},
468				"",
469				keepCase,
470				"-treport",
471				"Report when tnode usage exceeds value du"
472				"ring ambiguity resolution."
473			},
474			/* [7] */
475			NotDependent {
476
477			},
478			CheckOption {
479				NotSet,
480				{40, 292, 55, 431},
481				"Predicate",
482				"-info p",
483				"With the antlr \"-info p\" switch the user"
484				" will receive information about the pred"
485				"icate suppression in the generated file."
486			},
487			/* [8] */
488			NotDependent {
489
490			},
491			CheckOption {
492				NotSet,
493				{60, 292, 75, 430},
494				"Tree Nodes",
495				"-info t",
496				"Using \"-info t\" gives information about "
497				"the total number of tnodes created and t"
498				"he peak number of tnodes."
499			},
500			/* [9] */
501			NotDependent {
502
503			},
504			CheckOption {
505				NotSet,
506				{80, 292, 95, 425},
507				"First/follow",
508				"-info f",
509				"first/follow set information."
510			},
511			/* [10] */
512			NotDependent {
513
514			},
515			CheckOption {
516				NotSet,
517				{100, 292, 115, 425},
518				"Monitor progress",
519				"-info m",
520				"prints name of each rule as it is starte"
521				"d and flushes output at start of each rule."
522			},
523			/* [11] */
524			NotDependent {
525
526			},
527			CheckOption {
528				NotSet,
529				{120, 292, 135, 416},
530				"Orphan rules",
531				"-info o",
532				"If there is more than one rule which is "
533				"not referenced by any other rule then al"
534				"l such rules are listed."
535			},
536			/* [12] */
537			NotDependent {
538
539			},
540			TextBox {
541				gray,
542				{28, 279, 147, 451},
543				"Extra info"
544			}
545		},
546		/* [4] */
547		295,
548		"Use this dialog to specify command line "
549		"options relating to renaming output file"
550		"s.",
551		{	/* array itemArray: 7 elements */
552			/* [1] */
553			NotDependent {
554
555			},
556			RegularEntry {
557				"Errors file name:",
558				{35, 25, 50, 205},
559				{35, 205, 51, 300},
560				"err.c",
561				keepCase,
562				"-fe",
563				"This entry specifies the name ANTLR uses"
564				" for the errors file."
565			},
566			/* [2] */
567			NotDependent {
568
569			},
570			RegularEntry {
571				"Lexical output name:",
572				{60, 25, 75, 205},
573				{60, 205, 76, 300},
574				"parser.dlg",
575				keepCase,
576				"-fl",
577				"This entry specifies the name ANTLR uses"
578				" for the lexical output file."
579			},
580			/* [3] */
581			NotDependent {
582
583			},
584			RegularEntry {
585				"Lexical modes name:",
586				{85, 25, 100, 205},
587				{85, 205, 101, 300},
588				"mode.h",
589				keepCase,
590				"-fm",
591				"This entry specifies the name ANTLR uses"
592				" for the lexical mode definitions file."
593			},
594			/* [4] */
595			NotDependent {
596
597			},
598			RegularEntry {
599				"Remap file name:",
600				{110, 25, 125, 205},
601				{110, 205, 126, 300},
602				"remap.h",
603				keepCase,
604				"-fr",
605				"This entry specifies the name ANTLR uses"
606				" for the file that remaps globally visib"
607				"le symbols."
608			},
609			/* [5] */
610			NotDependent {
611
612			},
613			RegularEntry {
614				"Tokens file name:",
615				{135, 25, 150, 205},
616				{135, 205, 151, 300},
617				"tokens.h",
618				keepCase,
619				"-ft",
620				"This entry specifies the name ANTLR uses"
621				" for the tokens file."
622			},
623			/* [6] */
624			NotDependent {
625
626			},
627			CheckOption {
628				NotSet,
629				{160, 25, 175, 175},
630				"Create std header",
631				"-gh",
632				"If this option is checked, ANTLR will cr"
633				"eate a standard header file named, by de"
634				"fault 'stdpccts.h'. This name can be alt"
635				"ered using the entry right next door."
636			},
637			/* [7] */
638			Or {
639				{	/* array OrArray: 1 elements */
640					/* [1] */
641					6
642				}
643			},
644			RegularEntry {
645				"Std header file name:",
646				{160, 175, 175, 355},
647				{160, 355, 176, 450},
648				"stdpccts.h",
649				keepCase,
650				"-fh",
651				"This entry specifies the name ANTLR uses"
652				" for the standard header file."
653			}
654		},
655		/* [5] */
656		295,
657		"Use this dialog to specify parse options"
658		".",
659		{	/* array itemArray: 9 elements */
660			/* [1] */
661			NotDependent {
662
663			},
664			RegularEntry {
665				"Lookahead:",
666				{23, 27, 38, 152},
667				{46, 29, 62, 154},
668				"1",
669				keepCase,
670				"-k",
671				"This entry specifies the number of token"
672				"s of lookahead."
673			},
674			/* [2] */
675			NotDependent {
676
677			},
678			RegularEntry {
679				"Compr lookahead:",
680				{22, 167, 37, 292},
681				{46, 172, 62, 297},
682				"",
683				keepCase,
684				"-ck",
685				"This entry specifies the number of token"
686				"s of lookahead when using compressed (li"
687				"near approximation) lookahead. In genera"
688				"l, the compressed lookahead is much deep"
689				"er than the full lookahead."
690			},
691			/* [3] */
692			NotDependent {
693
694			},
695			RegularEntry {
696				"Max tree nodes:",
697				{22, 312, 37, 437},
698				{46, 315, 62, 445},
699				"",
700				keepCase,
701				"-rl",
702				"This entry specifies the maximum number "
703				"of tokens of tree nodes used by the gram"
704				"mar analysis."
705			},
706			/* [4] */
707			NotDependent {
708
709			},
710			CheckOption {
711				NotSet,
712				{76, 25, 91, 350},
713				"Maintenance Release style hoisting",
714				"-mrhoist",
715				"Turn on/off k=1 Maintenance Release styl"
716				"e hoisting."
717			},
718			/* [5] */
719			NotDependent {
720
721			},
722			CheckOption {
723				NotSet,
724				{96, 25, 111, 431},
725				"EXPERIMENTAL Maintenance Release style h"
726				"oisting",
727				"-mrhoistk",
728				"Turn on/off k>1 EXPERIMENTAL Maintenance"
729				" Release style hoisting."
730			},
731			/* [6] */
732			NotDependent {
733
734			},
735			CheckOption {
736				NotSet,
737				{116, 25, 131, 363},
738				"Compute context for hoisted predicates",
739				"-prc on",
740				"Turn on/off computation of context for h"
741				"oisted predicates."
742			},
743			/* [7] */
744			NotDependent {
745
746			},
747			RegularEntry {
748				"Ambiguity aid:",
749				{140, 27, 155, 125},
750				{141, 135, 155, 209},
751				"",
752				keepCase,
753				"-aa",
754				"Ambiguity aid for a rule (rule name or l"
755				"ine number)."
756			},
757			/* [8] */
758			NotDependent {
759
760			},
761			RegularEntry {
762				"Limits exp growth:",
763				{140, 236, 155, 361},
764				{139, 372, 155, 452},
765				"",
766				keepCase,
767				"-aad",
768				"Limits exp growth of -aa listing - defau"
769				"lt=1 (max=ck value)."
770			},
771			/* [9] */
772			NotDependent {
773
774			},
775			CheckOption {
776				NotSet,
777				{164, 26, 179, 366},
778				"Lookahead token may appear multiple time"
779				"s",
780				"-aam",
781				"Lookahead token may appear multiple time"
782				"s in -aa listing."
783			}
784		}
785	}
786};
787
788