dlg.r 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. /*
  2. File: dlgMPW.r
  3. Target: dlg 133MR
  4. Created: Monday, June 15, 1998 4:44:11 AM
  5. Author: Kenji Tanaka (kentar@osa.att.ne.jp)
  6. */
  7. #include "cmdo.r"
  8. resource 'cmdo' (128, "Dlg") {
  9. { /* array dialogs: 1 elements */
  10. /* [1] */
  11. 295,
  12. "DLG -- Purdue Compiler Construction Tool"
  13. " Set (PCCTS) lexical analyzer generator.",
  14. { /* array itemArray: 18 elements */
  15. /* [1] */
  16. NotDependent {
  17. },
  18. CheckOption {
  19. NotSet,
  20. {35, 175, 50, 225},
  21. "On",
  22. "-CC",
  23. "When this control is checked, DLG generates "
  24. "a scanner using C++ classes rather than "
  25. "C functions."
  26. },
  27. /* [2] */
  28. Or {
  29. { /* array OrArray: 1 elements */
  30. /* [1] */
  31. 1
  32. }
  33. },
  34. RegularEntry {
  35. "Lexer Class Name:",
  36. {35, 225, 50, 355},
  37. {35, 355, 51, 450},
  38. "DLGLexer",
  39. keepCase,
  40. "-cl",
  41. "This entry specifies the name DLG uses for the C++ lexer class."
  42. },
  43. /* [3] */
  44. NotDependent {
  45. },
  46. TextBox {
  47. gray,
  48. {25, 165, 60, 460},
  49. "C++ Code Generation"
  50. },
  51. /* [4] */
  52. NotDependent {
  53. },
  54. Files {
  55. InputFile,
  56. RequiredFile {
  57. {37, 25, 56, 135},
  58. "Input File",
  59. "",
  60. "Choose the lexical description file for "
  61. "DLG to process."
  62. },
  63. Additional {
  64. "",
  65. "",
  66. "",
  67. "",
  68. { /* array TypesArray: 1 elements */
  69. /* [1] */
  70. text
  71. }
  72. }
  73. },
  74. /* [5] */
  75. Or {
  76. { /* array OrArray: 1 elements */
  77. /* [1] */
  78. -1
  79. }
  80. },
  81. Files {
  82. OutputFile,
  83. RequiredFile {
  84. {66, 25, 85, 135},
  85. "Output File",
  86. "",
  87. "Choose the name of the file that will hold the DLG-produced scanner."
  88. },
  89. NoMore {
  90. }
  91. },
  92. /* [6] */
  93. Or {
  94. { /* array OrArray: 2 elements */
  95. /* [1] */
  96. 1,
  97. /* [2] */
  98. 5
  99. }
  100. },
  101. Dummy {
  102. },
  103. /* [7] */
  104. NotDependent {
  105. },
  106. Redirection {
  107. DiagnosticOutput,
  108. {90, 25}
  109. },
  110. /* [8] */
  111. NotDependent {
  112. },
  113. TextBox {
  114. gray,
  115. {25, 20, 132, 145},
  116. "Files"
  117. },
  118. /* [9] */
  119. NotDependent {
  120. },
  121. Files {
  122. DirOnly,
  123. OptionalFile {
  124. {68, 175, 84, 305},
  125. {88, 175, 107, 305},
  126. "Output Directory",
  127. ":",
  128. "-o",
  129. "",
  130. "Choose the directory where DLG will put "
  131. "its output.",
  132. dim,
  133. "Output DirectoryI",
  134. "",
  135. ""
  136. },
  137. NoMore {
  138. }
  139. },
  140. /* [10] */
  141. NotDependent {
  142. },
  143. RegularEntry {
  144. "Mode File Name:",
  145. {68, 315, 83, 450},
  146. {88, 315, 104, 450},
  147. "mode.h",
  148. keepCase,
  149. "-m",
  150. "This entry specifies the name DLG uses for its lexical mode output file."
  151. },
  152. /* [11] */
  153. NotDependent {
  154. },
  155. RadioButtons {
  156. { /* array radioArray: 3 elements */
  157. /* [1] */
  158. {134, 175, 149, 255}, "None", "", Set, "When this option is selected, DLG will not "
  159. "compress its tables.",
  160. /* [2] */
  161. {134, 265, 149, 345}, "Level 1", "-C1", NotSet, "When this option is selected, DLG will "
  162. "remove all unused characters from the transition-from table.",
  163. /* [3] */
  164. {134, 360, 149, 450}, "Level 2", "-C2", NotSet, "When this option is selected, DLG will "
  165. "perform level 1 compression plus it will "
  166. "map equivalent characters into the same "
  167. "character classes."
  168. }
  169. },
  170. /* [12] */
  171. NotDependent {
  172. },
  173. TextBox {
  174. gray,
  175. {124, 165, 156, 460},
  176. "Table Compression"
  177. },
  178. /* [13] */
  179. NotDependent {
  180. },
  181. CheckOption {
  182. Set,
  183. {165, 20, 180, 145},
  184. "Case Sensitive",
  185. "-ci",
  186. "When this control is checked, the DLG automaton "
  187. "will treat upper and lower case "
  188. "characters identically."
  189. },
  190. /* [14] */
  191. NotDependent {
  192. },
  193. CheckOption {
  194. NotSet,
  195. {165, 150, 180, 300},
  196. "Interactive Scanner",
  197. "-i",
  198. "When this control is checked, DLG will generate "
  199. "as interactive a scanner as possible."
  200. },
  201. /* [15] */
  202. NotDependent {
  203. },
  204. CheckOption {
  205. NotSet,
  206. {165, 310, 180, 460},
  207. "Ambiguity Warnings",
  208. "-Wambiguity",
  209. "When this control is checked, DLG warns "
  210. "if more than one regular expression could "
  211. "match the same character sequence."
  212. },
  213. /* [16] */
  214. NotDependent {
  215. },
  216. VersionDialog {
  217. VersionString {
  218. "1.33MR"
  219. },
  220. "PCCTS was written by Terence Parr, Russell "
  221. "Quong, Will Cohen, and Hank Dietz: 1989-1998. "
  222. "MPW port by Scott Haney.",
  223. noDialog
  224. },
  225. /* [17] */
  226. And {
  227. { /* array AndArray: 2 elements */
  228. /* [1] */
  229. 4,
  230. /* [2] */
  231. 6
  232. }
  233. },
  234. DoItButton {
  235. },
  236. /* [18] */
  237. NotDependent {
  238. },
  239. CheckOption {
  240. NotSet,
  241. {142, 20, 157, 148},
  242. "Generate ANSI C",
  243. "-ga",
  244. "When this control is checked, DLG generates "
  245. "ANSI C compatible code."
  246. }
  247. }
  248. }
  249. };