Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.06 KB | None | 0 0
  1. [@0,190:194='class',<'class'>,7:0]
  2. [@1,196:199='List',<TYPE>,7:6]
  3. [@2,201:208='inherits',<'inherits'>,7:11]
  4. [@3,210:211='IO',<TYPE>,7:20]
  5. [@4,213:213='{',<'{'>,7:23]
  6. [@5,220:223='elem',<ID>,8:4]
  7. [@6,225:225=':',<':'>,8:9]
  8. [@7,227:232='Object',<TYPE>,8:11]
  9. [@8,233:233=';',<';'>,8:17]
  10. [@9,240:243='next',<ID>,9:4]
  11. [@10,245:245=':',<':'>,9:9]
  12. [@11,247:250='List',<TYPE>,9:11]
  13. [@12,251:251=';',<';'>,9:15]
  14. [@13,260:263='init',<ID>,11:4]
  15. [@14,264:264='(',<'('>,11:8]
  16. [@15,265:265='e',<ID>,11:9]
  17. [@16,267:267=':',<':'>,11:11]
  18. [@17,269:274='Object',<TYPE>,11:13]
  19. [@18,275:275=',',<','>,11:19]
  20. [@19,277:277='n',<ID>,11:21]
  21. [@20,279:279=':',<':'>,11:23]
  22. [@21,281:284='List',<TYPE>,11:25]
  23. [@22,285:285=')',<')'>,11:29]
  24. [@23,287:287=':',<':'>,11:31]
  25. [@24,289:292='List',<TYPE>,11:33]
  26. [@25,294:294='{',<'{'>,11:38]
  27. [@26,305:305='{',<'{'>,12:8]
  28. [@27,320:323='elem',<ID>,13:12]
  29. [@28,325:326='<-',<'<-'>,13:17]
  30. [@29,328:328='e',<ID>,13:20]
  31. [@30,329:329=';',<';'>,13:21]
  32. [@31,344:347='next',<ID>,14:12]
  33. [@32,349:350='<-',<'<-'>,14:17]
  34. [@33,352:352='n',<ID>,14:20]
  35. [@34,353:353=';',<';'>,14:21]
  36. [@35,368:371='self',<ID>,15:12]
  37. [@36,372:372=';',<';'>,15:16]
  38. [@37,383:383='}',<'}'>,16:8]
  39. [@38,390:390='}',<'}'>,17:4]
  40. [@39,391:391=';',<';'>,17:5]
  41. [@40,400:404='print',<ID>,19:4]
  42. [@41,405:405='(',<'('>,19:9]
  43. [@42,406:406=')',<')'>,19:10]
  44. [@43,408:408=':',<':'>,19:12]
  45. [@44,410:411='IO',<TYPE>,19:14]
  46. [@45,413:413='{',<'{'>,19:17]
  47. [@46,424:426='let',<'let'>,20:8]
  48. [@47,428:430='str',<ID>,20:12]
  49. [@48,432:432=':',<':'>,20:16]
  50. [@49,434:439='String',<TYPE>,20:18]
  51. [@50,441:442='<-',<'<-'>,20:25]
  52. [@51,690:693='case',<'case'>,24:16]
  53. [@52,695:698='elem',<ID>,24:21]
  54. [@53,700:701='of',<'of'>,24:26]
  55. [@54,724:724='s',<ID>,25:20]
  56. [@55,726:726=':',<':'>,25:22]
  57. [@56,728:733='String',<TYPE>,25:24]
  58. [@57,735:736='=>',<'=>'>,25:31]
  59. [@58,738:738='s',<ID>,25:34]
  60. [@59,739:739=';',<';'>,25:35]
  61. [@60,762:762='n',<ID>,26:20]
  62. [@61,764:764=':',<':'>,26:22]
  63. [@62,766:768='Int',<TYPE>,26:24]
  64. [@63,770:771='=>',<'=>'>,26:28]
  65. [@64,773:775='new',<'new'>,26:31]
  66. [@65,777:779='A2I',<TYPE>,26:35]
  67. [@66,780:780='.',<'.'>,26:38]
  68. [@67,781:783='i2a',<ID>,26:39]
  69. [@68,784:784='(',<'('>,26:42]
  70. [@69,785:785='n',<ID>,26:43]
  71. [@70,786:786=')',<')'>,26:44]
  72. [@71,787:787=';',<';'>,26:45]
  73. [@72,840:840='o',<ID>,27:20]
  74. [@73,842:842=':',<':'>,27:22]
  75. [@74,844:849='Object',<TYPE>,27:24]
  76. [@75,851:852='=>',<'=>'>,27:31]
  77. [@76,854:854='{',<'{'>,27:34]
  78. [@77,856:860='abort',<ID>,27:36]
  79. [@78,861:861='(',<'('>,27:41]
  80. [@79,862:862=')',<')'>,27:42]
  81. [@80,863:863=';',<';'>,27:43]
  82. [@81,865:866='',<STRING>,27:45]
  83. [@82,867:867=';',<';'>,27:47]
  84. [@83,869:869='}',<'}'>,27:49]
  85. [@84,870:870=';',<';'>,27:50]
  86. [@85,889:892='esac',<'esac'>,28:16]
  87. [@86,903:904='in',<'in'>,29:8]
  88. [@87,919:919='{',<'{'>,30:12]
  89. [@88,938:947='out_string',<ID>,31:16]
  90. [@89,948:948='(',<'('>,31:26]
  91. [@90,949:951='str',<ID>,31:27]
  92. [@91,952:952='.',<'.'>,31:30]
  93. [@92,953:958='concat',<ID>,31:31]
  94. [@93,959:959='(',<'('>,31:37]
  95. [@94,960:962=' ',<STRING>,31:38]
  96. [@95,963:963=')',<')'>,31:41]
  97. [@96,964:964=')',<')'>,31:42]
  98. [@97,965:965=';',<';'>,31:43]
  99. [@98,984:985='if',<'if'>,32:16]
  100. [@99,987:987='(',<'('>,32:19]
  101. [@100,988:993='isvoid',<'isvoid'>,32:20]
  102. [@101,995:998='next',<ID>,32:27]
  103. [@102,999:999=')',<')'>,32:31]
  104. [@103,1001:1004='then',<'then'>,32:33]
  105. [@104,1006:1015='out_string',<ID>,32:38]
  106. [@105,1016:1016='(',<'('>,32:48]
  107. [@106,1017:1020='\n',<STRING>,32:49]
  108. [@107,1021:1021=')',<')'>,32:53]
  109. [@108,1023:1026='else',<'else'>,32:55]
  110. [@109,1028:1031='next',<ID>,32:60]
  111. [@110,1032:1032='.',<'.'>,32:64]
  112. [@111,1033:1037='print',<ID>,32:65]
  113. [@112,1038:1038='(',<'('>,32:70]
  114. [@113,1039:1039=')',<')'>,32:71]
  115. [@114,1041:1042='fi',<'fi'>,32:73]
  116. [@115,1043:1043=';',<';'>,32:75]
  117. [@116,1058:1058='}',<'}'>,33:12]
  118. [@117,1065:1065='}',<'}'>,34:4]
  119. [@118,1066:1066=';',<';'>,34:5]
  120. [@119,1069:1069='}',<'}'>,35:0]
  121. [@120,1070:1070=';',<';'>,35:1]
  122. [@121,1075:1079='class',<'class'>,37:0]
  123. [@122,1081:1084='Main',<TYPE>,37:6]
  124. [@123,1086:1093='inherits',<'inherits'>,37:11]
  125. [@124,1095:1096='IO',<TYPE>,37:20]
  126. [@125,1098:1098='{',<'{'>,37:23]
  127. [@126,1105:1108='main',<ID>,38:4]
  128. [@127,1109:1109='(',<'('>,38:8]
  129. [@128,1110:1110=')',<')'>,38:9]
  130. [@129,1112:1112=':',<':'>,38:11]
  131. [@130,1114:1119='Object',<TYPE>,38:13]
  132. [@131,1121:1121='{',<'{'>,38:20]
  133. [@132,1132:1132='{',<'{'>,39:8]
  134. [@133,1147:1149='let',<'let'>,40:12]
  135. [@134,1151:1151='x',<ID>,40:16]
  136. [@135,1153:1153=':',<':'>,40:18]
  137. [@136,1155:1157='Int',<TYPE>,40:20]
  138. [@137,1159:1160='<-',<'<-'>,40:24]
  139. [@138,1162:1162='0',<INT>,40:27]
  140. [@139,1163:1163=',',<','>,40:28]
  141. [@140,1182:1182='y',<ID>,41:16]
  142. [@141,1184:1184=':',<':'>,41:18]
  143. [@142,1186:1191='String',<TYPE>,41:20]
  144. [@143,1193:1194='<-',<'<-'>,41:27]
  145. [@144,1196:1198='!',<STRING>,41:30]
  146. [@145,1199:1199=',',<','>,41:33]
  147. [@146,1218:1218='z',<ID>,42:16]
  148. [@147,1220:1220=':',<':'>,42:18]
  149. [@148,1222:1224='Int',<TYPE>,42:20]
  150. [@149,1226:1227='<-',<'<-'>,42:24]
  151. [@150,1229:1229='x',<ID>,42:27]
  152. [@151,1231:1231='+',<'+'>,42:29]
  153. [@152,1233:1233='2',<INT>,42:31]
  154. [@153,1234:1234=',',<','>,42:32]
  155. [@154,1253:1257='empty',<ID>,43:16]
  156. [@155,1259:1259=':',<':'>,43:22]
  157. [@156,1261:1264='List',<TYPE>,43:24]
  158. [@157,1265:1265=',',<','>,43:28]
  159. [@158,1318:1321='list',<ID>,44:16]
  160. [@159,1323:1323=':',<':'>,44:21]
  161. [@160,1325:1328='List',<TYPE>,44:23]
  162. [@161,1330:1331='<-',<'<-'>,44:28]
  163. [@162,1354:1356='new',<'new'>,45:20]
  164. [@163,1358:1361='List',<TYPE>,45:24]
  165. [@164,1362:1362='.',<'.'>,45:28]
  166. [@165,1363:1366='init',<ID>,45:29]
  167. [@166,1367:1367='(',<'('>,45:33]
  168. [@167,1368:1368='x',<ID>,45:34]
  169. [@168,1369:1369=',',<','>,45:35]
  170. [@169,1396:1398='new',<'new'>,46:24]
  171. [@170,1400:1403='List',<TYPE>,46:28]
  172. [@171,1404:1404='.',<'.'>,46:32]
  173. [@172,1405:1408='init',<ID>,46:33]
  174. [@173,1409:1409='(',<'('>,46:37]
  175. [@174,1410:1410='y',<ID>,46:38]
  176. [@175,1411:1411=',',<','>,46:39]
  177. [@176,1442:1444='new',<'new'>,47:28]
  178. [@177,1446:1449='List',<TYPE>,47:32]
  179. [@178,1450:1450='.',<'.'>,47:36]
  180. [@179,1451:1454='init',<ID>,47:37]
  181. [@180,1455:1455='(',<'('>,47:41]
  182. [@181,1456:1456='z',<ID>,47:42]
  183. [@182,1457:1457=',',<','>,47:43]
  184. [@183,1459:1463='empty',<ID>,47:45]
  185. [@184,1464:1464=')',<')'>,47:50]
  186. [@185,1465:1465=')',<')'>,47:51]
  187. [@186,1466:1466=')',<')'>,47:52]
  188. [@187,1481:1482='in',<'in'>,48:12]
  189. [@188,1501:1504='list',<ID>,49:16]
  190. [@189,1505:1505='.',<'.'>,49:20]
  191. [@190,1506:1510='print',<ID>,49:21]
  192. [@191,1511:1511='(',<'('>,49:26]
  193. [@192,1512:1512=')',<')'>,49:27]
  194. [@193,1513:1513=';',<';'>,49:28]
  195. [@194,1608:1610='let',<'let'>,52:12]
  196. [@195,1612:1612='n',<ID>,52:16]
  197. [@196,1614:1614=':',<':'>,52:18]
  198. [@197,1616:1618='Int',<TYPE>,52:20]
  199. [@198,1620:1621='<-',<'<-'>,52:24]
  200. [@199,1623:1632='out_string',<ID>,52:27]
  201. [@200,1633:1633='(',<'('>,52:37]
  202. [@201,1634:1662='Calculăm factorial pentru: ',<STRING>,52:38]
  203. [@202,1663:1663=')',<')'>,52:67]
  204. [@203,1664:1664='.',<'.'>,52:68]
  205. [@204,1665:1670='in_int',<ID>,52:69]
  206. [@205,1671:1671='(',<'('>,52:75]
  207. [@206,1672:1672=')',<')'>,52:76]
  208. [@207,1687:1688='in',<'in'>,53:12]
  209. [@208,1707:1707='{',<'{'>,54:16]
  210. [@209,1730:1739='out_string',<ID>,55:20]
  211. [@210,1740:1740='(',<'('>,55:30]
  212. [@211,1741:1762='Factorial recursiv: ',<STRING>,55:31]
  213. [@212,1763:1763=')',<')'>,55:53]
  214. [@213,1764:1764='.',<'.'>,55:54]
  215. [@214,1765:1771='out_int',<ID>,55:55]
  216. [@215,1772:1772='(',<'('>,55:62]
  217. [@216,1773:1780='fact_rec',<ID>,55:63]
  218. [@217,1781:1781='(',<'('>,55:71]
  219. [@218,1782:1782='n',<ID>,55:72]
  220. [@219,1783:1783=')',<')'>,55:73]
  221. [@220,1784:1784=')',<')'>,55:74]
  222. [@221,1811:1811='.',<'.'>,56:24]
  223. [@222,1812:1821='out_string',<ID>,56:25]
  224. [@223,1822:1822='(',<'('>,56:35]
  225. [@224,1823:1826='\n',<STRING>,56:36]
  226. [@225,1827:1827=')',<')'>,56:40]
  227. [@226,1828:1828=';',<';'>,56:41]
  228. [@227,1851:1860='out_string',<ID>,57:20]
  229. [@228,1861:1861='(',<'('>,57:30]
  230. [@229,1862:1883='Factorial iterativ: ',<STRING>,57:31]
  231. [@230,1884:1884=')',<')'>,57:53]
  232. [@231,1885:1885='.',<'.'>,57:54]
  233. [@232,1886:1892='out_int',<ID>,57:55]
  234. [@233,1893:1893='(',<'('>,57:62]
  235. [@234,1894:1902='fact_iter',<ID>,57:63]
  236. [@235,1903:1903='(',<'('>,57:72]
  237. [@236,1904:1904='n',<ID>,57:73]
  238. [@237,1905:1905=')',<')'>,57:74]
  239. [@238,1906:1906=')',<')'>,57:75]
  240. [@239,1933:1933='.',<'.'>,58:24]
  241. [@240,1934:1943='out_string',<ID>,58:25]
  242. [@241,1944:1944='(',<'('>,58:35]
  243. [@242,1945:1948='\n',<STRING>,58:36]
  244. [@243,1949:1949=')',<')'>,58:40]
  245. [@244,1950:1950=';',<';'>,58:41]
  246. [@245,1969:1969='}',<'}'>,59:16]
  247. [@246,1970:1970=';',<';'>,59:17]
  248. [@247,1981:1981='}',<'}'>,60:8]
  249. [@248,1988:1988='}',<'}'>,61:4]
  250. [@249,1989:1989=';',<';'>,61:5]
  251. [@250,2037:2044='fact_rec',<ID>,64:4]
  252. [@251,2045:2045='(',<'('>,64:12]
  253. [@252,2046:2046='n',<ID>,64:13]
  254. [@253,2048:2048=':',<':'>,64:15]
  255. [@254,2050:2052='Int',<TYPE>,64:17]
  256. [@255,2053:2053=')',<')'>,64:20]
  257. [@256,2055:2055=':',<':'>,64:22]
  258. [@257,2057:2059='Int',<TYPE>,64:24]
  259. [@258,2061:2061='{',<'{'>,64:28]
  260. [@259,2072:2073='if',<'if'>,65:8]
  261. [@260,2075:2075='n',<ID>,65:11]
  262. [@261,2077:2077='=',<'='>,65:13]
  263. [@262,2079:2079='0',<INT>,65:15]
  264. [@263,2081:2084='then',<'then'>,65:17]
  265. [@264,2086:2086='1',<INT>,65:22]
  266. [@265,2088:2091='else',<'else'>,65:24]
  267. [@266,2093:2093='n',<ID>,65:29]
  268. [@267,2095:2095='*',<'*'>,65:31]
  269. [@268,2097:2104='fact_rec',<ID>,65:33]
  270. [@269,2105:2105='(',<'('>,65:41]
  271. [@270,2106:2106='n',<ID>,65:42]
  272. [@271,2108:2108='-',<'-'>,65:44]
  273. [@272,2110:2110='1',<INT>,65:46]
  274. [@273,2111:2111=')',<')'>,65:47]
  275. [@274,2113:2114='fi',<'fi'>,65:49]
  276. [@275,2121:2121='}',<'}'>,66:4]
  277. [@276,2122:2122=';',<';'>,66:5]
  278. [@277,2170:2178='fact_iter',<ID>,69:4]
  279. [@278,2179:2179='(',<'('>,69:13]
  280. [@279,2180:2180='n',<ID>,69:14]
  281. [@280,2182:2182=':',<':'>,69:16]
  282. [@281,2184:2186='Int',<TYPE>,69:18]
  283. [@282,2187:2187=')',<')'>,69:21]
  284. [@283,2189:2189=':',<':'>,69:23]
  285. [@284,2191:2193='Int',<TYPE>,69:25]
  286. [@285,2195:2195='{',<'{'>,69:29]
  287. [@286,2206:2208='let',<'let'>,70:8]
  288. [@287,2210:2212='res',<ID>,70:12]
  289. [@288,2214:2214=':',<':'>,70:16]
  290. [@289,2216:2218='Int',<TYPE>,70:18]
  291. [@290,2220:2221='<-',<'<-'>,70:22]
  292. [@291,2223:2223='1',<INT>,70:25]
  293. [@292,2356:2357='in',<'in'>,73:8]
  294. [@293,2372:2372='{',<'{'>,74:12]
  295. [@294,2391:2395='while',<'while'>,75:16]
  296. [@295,2397:2397='(',<'('>,75:22]
  297. [@296,2398:2400='not',<'not'>,75:23]
  298. [@297,2402:2402='(',<'('>,75:27]
  299. [@298,2403:2403='n',<ID>,75:28]
  300. [@299,2405:2405='=',<'='>,75:30]
  301. [@300,2407:2407='0',<INT>,75:32]
  302. [@301,2408:2408=')',<')'>,75:33]
  303. [@302,2409:2409=')',<')'>,75:34]
  304. [@303,2411:2414='loop',<'loop'>,75:36]
  305. [@304,2437:2437='{',<'{'>,76:20]
  306. [@305,2464:2466='res',<ID>,77:24]
  307. [@306,2468:2469='<-',<'<-'>,77:28]
  308. [@307,2471:2473='res',<ID>,77:31]
  309. [@308,2475:2475='*',<'*'>,77:35]
  310. [@309,2477:2477='n',<ID>,77:37]
  311. [@310,2478:2478=';',<';'>,77:38]
  312. [@311,2505:2505='n',<ID>,78:24]
  313. [@312,2507:2508='<-',<'<-'>,78:26]
  314. [@313,2510:2510='n',<ID>,78:29]
  315. [@314,2512:2512='-',<'-'>,78:31]
  316. [@315,2514:2514='1',<INT>,78:33]
  317. [@316,2515:2515=';',<';'>,78:34]
  318. [@317,2538:2538='}',<'}'>,79:20]
  319. [@318,2557:2560='pool',<'pool'>,80:16]
  320. [@319,2561:2561=';',<';'>,80:20]
  321. [@320,2580:2582='res',<ID>,81:16]
  322. [@321,2583:2583=';',<';'>,81:19]
  323. [@322,2598:2598='}',<'}'>,82:12]
  324. [@323,2605:2605='}',<'}'>,83:4]
  325. [@324,2606:2606=';',<';'>,83:5]
  326. [@325,2609:2609='}',<'}'>,84:0]
  327. [@326,2610:2610=';',<';'>,84:1]
  328. [@327,2611:2610='<EOF>',<EOF>,84:2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement