+++ /dev/null
-/*\r
- File: antlrMPW.r\r
- Target: antlr 133MR\r
- Created: Monday, June 15, 1998 4:41:11 AM\r
- Author: Kenji Tanaka (kentar@osa.att.ne.jp)\r
-*/\r
-\r
-#include "cmdo.r"\r
-\r
-resource 'cmdo' (128, "Antlr") {\r
- { /* array dialogs: 5 elements */\r
- /* [1] */\r
- 295,\r
- "ANTLR -- Purdue Compiler Construction To"\r
- "ol Set (PCCTS) LL(k) parser generator.",\r
- { /* array itemArray: 12 elements */\r
- /* [1] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {18, 23, 33, 223},\r
- "Read grammar from stdin",\r
- "-",\r
- "Read grammar from stdin."\r
- },\r
- /* [2] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {38, 23, 53, 310},\r
- "Send grammar.c/grammar.cpp to stdout",\r
- "-stdout",\r
- "Send grammar.c/grammar.cpp to stdout."\r
- },\r
- /* [3] */\r
- NotDependent {\r
-\r
- },\r
- MultiFiles {\r
- "Grammar File(s)É",\r
- "Choose the grammar specification files y"\r
- "ou wish to have ANTLR process.",\r
- {79, 22, 98, 152},\r
- "Grammar specification:",\r
- "",\r
- MultiInputFiles {\r
- { /* array MultiTypesArray: 1 elements */\r
- /* [1] */\r
- text\r
- },\r
- ".g",\r
- "Files ending in .g",\r
- "All text files"\r
- }\r
- },\r
- /* [4] */\r
- NotDependent {\r
-\r
- },\r
- Files {\r
- DirOnly,\r
- OptionalFile {\r
- {58, 168, 74, 298},\r
- {79, 169, 98, 299},\r
- "Output Directory",\r
- ":",\r
- "-o",\r
- "",\r
- "Choose the directory where ANTLR will pu"\r
- "t its output.",\r
- dim,\r
- "Output DirectoryÉ",\r
- "",\r
- ""\r
- },\r
- NoMore {\r
-\r
- }\r
- },\r
- /* [5] */\r
- NotDependent {\r
-\r
- },\r
- Redirection {\r
- StandardOutput,\r
- {126, 27}\r
- },\r
- /* [6] */\r
- NotDependent {\r
-\r
- },\r
- Redirection {\r
- DiagnosticOutput,\r
- {126, 178}\r
- },\r
- /* [7] */\r
- NotDependent {\r
-\r
- },\r
- TextBox {\r
- gray,\r
- {117, 20, 167, 300},\r
- "Redirection"\r
- },\r
- /* [8] */\r
- NotDependent {\r
-\r
- },\r
- NestedDialog {\r
- 5,\r
- {20, 324, 40, 460},\r
- "Parse OptionsÉ",\r
- "Parse control options may be set with th"\r
- "is button."\r
- },\r
- /* [9] */\r
- NotDependent {\r
-\r
- },\r
- NestedDialog {\r
- 2,\r
- {50, 324, 70, 460},\r
- "Generate OptionsÉ",\r
- "Various command line options may be set "\r
- "with this button."\r
- },\r
- /* [10] */\r
- NotDependent {\r
-\r
- },\r
- NestedDialog {\r
- 3,\r
- {78, 324, 98, 460},\r
- "More OptionsÉ",\r
- "Antlr has ALOT of options. There are eve"\r
- "n more to be found with this button."\r
- },\r
- /* [11] */\r
- NotDependent {\r
-\r
- },\r
- NestedDialog {\r
- 4,\r
- {106, 324, 126, 460},\r
- "Rename OptionsÉ",\r
- "Options for renaming output files may be"\r
- " set with this button."\r
- },\r
- /* [12] */\r
- NotDependent {\r
-\r
- },\r
- VersionDialog {\r
- VersionString {\r
- "1.33MR"\r
- },\r
- "PCCTS was written by Terence Parr, Russe"\r
- "ll Quong, Will Cohen, and Hank Dietz: 19"\r
- "89-1998. MPW port by Scott Haney.",\r
- noDialog\r
- }\r
- },\r
- /* [2] */\r
- 295,\r
- "Use this dialog to specify command line "\r
- "Generate Options.",\r
- { /* array itemArray: 15 elements */\r
- /* [1] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {18, 25, 33, 225},\r
- "Generate C++ code",\r
- "-CC",\r
- "Generate C++ output from both ANTLR and "\r
- "DLG."\r
- },\r
- /* [2] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {38, 25, 53, 225},\r
- "Generate ASTs",\r
- "-gt",\r
- "Generate code for Abstract-Syntax-Trees "\r
- "(ASTs)."\r
- },\r
- /* [3] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {58, 25, 73, 225},\r
- "Generate line info",\r
- "-gl",\r
- "If this option is checked, ANTLR will ge"\r
- "nerate line info about grammaractions, t"\r
- "hereby making debugging easier since com"\r
- "pile errors will point to the grammar fi"\r
- "le."\r
- },\r
- /* [4] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {78, 25, 93, 225},\r
- "Generate error classes",\r
- "-ge",\r
- "If this option is checked, ANTLR will ge"\r
- "nerate an error class foreach non-termin"\r
- "al."\r
- },\r
- /* [5] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {98, 25, 113, 225},\r
- "Don't generate Code",\r
- "-gc",\r
- "If this option is checked, ANTLR will ge"\r
- "nerate no code, i.e. it will only perfor"\r
- "m analysis on the grammar."\r
- },\r
- /* [6] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {118, 25, 133, 225},\r
- "Delay lookahead fetches",\r
- "-gk",\r
- "If this option is checked, ANTLR will ge"\r
- "nerate a parser that delays lookahead fe"\r
- "tches until needed."\r
- },\r
- /* [7] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {138, 25, 153, 225},\r
- "Use newAST(...)",\r
- "-newAST",\r
- "In C++ mode use \"newAST(...)\" rather tha"\r
- "n \"new AST(...)\""\r
- },\r
- /* [8] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {18, 235, 33, 435},\r
- "Support parse traces",\r
- "-gd",\r
- "If this option is checked, ANTLR inserts"\r
- " code in each parsing function to provid"\r
- "e for user-defined handling of a detaile"\r
- "d parse trace. The code consists of call"\r
- "s to zzTRACEIN and zzTRACEOUT."\r
- },\r
- /* [9] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {38, 235, 53, 435},\r
- "Generate cross-references",\r
- "-cr",\r
- "If this option is checked, ANTLR will ge"\r
- "nerate a cross reference for all rules. "\r
- "For each rule it will print a list of al"\r
- "l other rules that refrence it."\r
- },\r
- /* [10] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {58, 235, 73, 435},\r
- "Don't create Lexer files",\r
- "-gx",\r
- "If this option is checked, ANTLR will no"\r
- "t generate DLG-related output files. Thi"\r
- "s option should be used if one wants a c"\r
- "ustom lexical analyzer or if one has mad"\r
- "e changes to the grammar not affecting t"\r
- "he lexical structure."\r
- },\r
- /* [11] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {78, 235, 93, 460},\r
- "Don't generate token expr sets",\r
- "-gs",\r
- "If this option is checked, ANTLR will no"\r
- "t generate sets for token expression set"\r
- "s; instead, it will generate a || separa"\r
- "ted sequence of LA(1)==token #. "\r
- },\r
- /* [12] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {98, 235, 113, 460},\r
- "Generate ANSI-compatible",\r
- "-ga",\r
- "Generate ANSI-compatible code (default=F"\r
- "ALSE)"\r
- },\r
- /* [13] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {118, 235, 133, 460},\r
- "Don't generate tokens.h",\r
- "-gxt",\r
- "Do not generate tokens.h (default=FALSE)"\r
- },\r
- /* [13] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {138, 235, 153, 460},\r
- "Provide \"(alpha)? beta\" info",\r
- "-alpha",\r
- "Provide additional information for \"(alpha)? beta\" error messages"\r
- },\r
- /* [14] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Tabs(1 to 8):",\r
- {162, 23, 177, 117},\r
- {163, 125, 179, 196},\r
- "",\r
- keepCase,\r
- "-tab",\r
- "Width of tabs (1 to 8) for grammar.c/gra"\r
- "mmar.cpp files."\r
- },\r
- /* [15] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Function Prefix:",\r
- {161, 236, 177, 342},\r
- {162, 345, 177, 454},\r
- "",\r
- keepCase,\r
- "-gp",\r
- "Prefix all generated rule functions with"\r
- " a string."\r
- }\r
- },\r
- /* [3] */\r
- 295,\r
- "Use this dialog to specify still more co"\r
- "mmand line options.",\r
- { /* array itemArray: 12 elements */\r
- /* [1] */\r
- NotDependent {\r
-\r
- },\r
- RadioButtons {\r
- { /* array radioArray: 3 elements */\r
- /* [1] */\r
- {38, 25, 53, 85}, "None", "", Set, "When this option is selected, ANTLR will"\r
- " not print the grammar to stdout.",\r
- /* [2] */\r
- {38, 100, 53, 160}, "Yes", "-p", NotSet, "When this option is selected, ANTLR will"\r
- " print the grammar, stripped of all acti"\r
- "ons and comments, to stdout.",\r
- /* [3] */\r
- {38, 175, 53, 235}, "More", "-pa", NotSet, "When this option is selected, ANTLR will"\r
- " print the grammar, stripped of all acti"\r
- "ons and comments, to stdout. It will als"\r
- "o annotate the output with the first set"\r
- "s determined from grammar analysis."\r
- }\r
- },\r
- /* [2] */\r
- NotDependent {\r
-\r
- },\r
- TextBox {\r
- gray,\r
- {28, 15, 60, 250},\r
- "Grammar Printing"\r
- },\r
- /* [3] */\r
- NotDependent {\r
-\r
- },\r
- RadioButtons {\r
- { /* array radioArray: 3 elements */\r
- /* [1] */\r
- {88, 25, 103, 85}, "Low", "", Set, "When this option is selected, ANTLR will"\r
- " show ambiguities/errors in low detail.",\r
- /* [2] */\r
- {88, 100, 103, 160}, "Medium", "-e2", NotSet, "When this option is selected, ANTLR will"\r
- " show ambiguities/errors in more detail.",\r
- /* [3] */\r
- {88, 175, 103, 235}, "High", "-e3", NotSet, "When this option is selected, ANTLR will"\r
- " show ambiguities/errors in excruciating"\r
- " detail."\r
- }\r
- },\r
- /* [4] */\r
- NotDependent {\r
-\r
- },\r
- TextBox {\r
- gray,\r
- {78, 15, 110, 250},\r
- "Error reporting"\r
- },\r
- /* [5] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {130, 22, 145, 222},\r
- "More warnings",\r
- "-w2",\r
- "If this option is checked, ANTLR will wa"\r
- "rn if semantic predicates and/or (É)? bl"\r
- "ocks are assumed to cover ambiguous alte"\r
- "rnatives."\r
- },\r
- /* [6] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Report when tnode usage exceeds:",\r
- {162, 23, 180, 253},\r
- {162, 255, 178, 326},\r
- "",\r
- keepCase,\r
- "-treport",\r
- "Report when tnode usage exceeds value du"\r
- "ring ambiguity resolution."\r
- },\r
- /* [7] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {40, 292, 55, 431},\r
- "Predicate",\r
- "-info p",\r
- "With the antlr \"-info p\" switch the user"\r
- " will receive information about the pred"\r
- "icate suppression in the generated file."\r
- },\r
- /* [8] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {60, 292, 75, 430},\r
- "Tree Nodes",\r
- "-info t",\r
- "Using \"-info t\" gives information about "\r
- "the total number of tnodes created and t"\r
- "he peak number of tnodes."\r
- },\r
- /* [9] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {80, 292, 95, 425},\r
- "First/follow",\r
- "-info f",\r
- "first/follow set information."\r
- },\r
- /* [10] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {100, 292, 115, 425},\r
- "Monitor progress",\r
- "-info m",\r
- "prints name of each rule as it is starte"\r
- "d and flushes output at start of each rule."\r
- },\r
- /* [11] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {120, 292, 135, 416},\r
- "Orphan rules",\r
- "-info o",\r
- "If there is more than one rule which is "\r
- "not referenced by any other rule then al"\r
- "l such rules are listed."\r
- },\r
- /* [12] */\r
- NotDependent {\r
-\r
- },\r
- TextBox {\r
- gray,\r
- {28, 279, 147, 451},\r
- "Extra info"\r
- }\r
- },\r
- /* [4] */\r
- 295,\r
- "Use this dialog to specify command line "\r
- "options relating to renaming output file"\r
- "s.",\r
- { /* array itemArray: 7 elements */\r
- /* [1] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Errors file name:",\r
- {35, 25, 50, 205},\r
- {35, 205, 51, 300},\r
- "err.c",\r
- keepCase,\r
- "-fe",\r
- "This entry specifies the name ANTLR uses"\r
- " for the errors file."\r
- },\r
- /* [2] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Lexical output name:",\r
- {60, 25, 75, 205},\r
- {60, 205, 76, 300},\r
- "parser.dlg",\r
- keepCase,\r
- "-fl",\r
- "This entry specifies the name ANTLR uses"\r
- " for the lexical output file."\r
- },\r
- /* [3] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Lexical modes name:",\r
- {85, 25, 100, 205},\r
- {85, 205, 101, 300},\r
- "mode.h",\r
- keepCase,\r
- "-fm",\r
- "This entry specifies the name ANTLR uses"\r
- " for the lexical mode definitions file."\r
- },\r
- /* [4] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Remap file name:",\r
- {110, 25, 125, 205},\r
- {110, 205, 126, 300},\r
- "remap.h",\r
- keepCase,\r
- "-fr",\r
- "This entry specifies the name ANTLR uses"\r
- " for the file that remaps globally visib"\r
- "le symbols."\r
- },\r
- /* [5] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Tokens file name:",\r
- {135, 25, 150, 205},\r
- {135, 205, 151, 300},\r
- "tokens.h",\r
- keepCase,\r
- "-ft",\r
- "This entry specifies the name ANTLR uses"\r
- " for the tokens file."\r
- },\r
- /* [6] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {160, 25, 175, 175},\r
- "Create std header",\r
- "-gh",\r
- "If this option is checked, ANTLR will cr"\r
- "eate a standard header file named, by de"\r
- "fault 'stdpccts.h'. This name can be alt"\r
- "ered using the entry right next door."\r
- },\r
- /* [7] */\r
- Or {\r
- { /* array OrArray: 1 elements */\r
- /* [1] */\r
- 6\r
- }\r
- },\r
- RegularEntry {\r
- "Std header file name:",\r
- {160, 175, 175, 355},\r
- {160, 355, 176, 450},\r
- "stdpccts.h",\r
- keepCase,\r
- "-fh",\r
- "This entry specifies the name ANTLR uses"\r
- " for the standard header file."\r
- }\r
- },\r
- /* [5] */\r
- 295,\r
- "Use this dialog to specify parse options"\r
- ".",\r
- { /* array itemArray: 9 elements */\r
- /* [1] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Lookahead:",\r
- {23, 27, 38, 152},\r
- {46, 29, 62, 154},\r
- "1",\r
- keepCase,\r
- "-k",\r
- "This entry specifies the number of token"\r
- "s of lookahead."\r
- },\r
- /* [2] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Compr lookahead:",\r
- {22, 167, 37, 292},\r
- {46, 172, 62, 297},\r
- "",\r
- keepCase,\r
- "-ck",\r
- "This entry specifies the number of token"\r
- "s of lookahead when using compressed (li"\r
- "near approximation) lookahead. In genera"\r
- "l, the compressed lookahead is much deep"\r
- "er than the full lookahead."\r
- },\r
- /* [3] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Max tree nodes:",\r
- {22, 312, 37, 437},\r
- {46, 315, 62, 445},\r
- "",\r
- keepCase,\r
- "-rl",\r
- "This entry specifies the maximum number "\r
- "of tokens of tree nodes used by the gram"\r
- "mar analysis."\r
- },\r
- /* [4] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {76, 25, 91, 350},\r
- "Maintenance Release style hoisting",\r
- "-mrhoist",\r
- "Turn on/off k=1 Maintenance Release styl"\r
- "e hoisting."\r
- },\r
- /* [5] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {96, 25, 111, 431},\r
- "EXPERIMENTAL Maintenance Release style h"\r
- "oisting",\r
- "-mrhoistk",\r
- "Turn on/off k>1 EXPERIMENTAL Maintenance"\r
- " Release style hoisting."\r
- },\r
- /* [6] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {116, 25, 131, 363},\r
- "Compute context for hoisted predicates",\r
- "-prc on",\r
- "Turn on/off computation of context for h"\r
- "oisted predicates."\r
- },\r
- /* [7] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Ambiguity aid:",\r
- {140, 27, 155, 125},\r
- {141, 135, 155, 209},\r
- "",\r
- keepCase,\r
- "-aa",\r
- "Ambiguity aid for a rule (rule name or l"\r
- "ine number)."\r
- },\r
- /* [8] */\r
- NotDependent {\r
-\r
- },\r
- RegularEntry {\r
- "Limits exp growth:",\r
- {140, 236, 155, 361},\r
- {139, 372, 155, 452},\r
- "",\r
- keepCase,\r
- "-aad",\r
- "Limits exp growth of -aa listing - defau"\r
- "lt=1 (max=ck value)."\r
- },\r
- /* [9] */\r
- NotDependent {\r
-\r
- },\r
- CheckOption {\r
- NotSet,\r
- {164, 26, 179, 366},\r
- "Lookahead token may appear multiple time"\r
- "s",\r
- "-aam",\r
- "Lookahead token may appear multiple time"\r
- "s in -aa listing."\r
- }\r
- }\r
- }\r
-};\r
-\r