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