|
@@ -7,7 +7,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
self['@memo']=smalltalk.send(smalltalk.Dictionary, "_new", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -19,7 +18,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return self['@memo'];
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -31,7 +29,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPFlattenParser, "_on_", [self]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -43,7 +40,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPSourceParser, "_on_", [self]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -55,7 +51,6 @@ fn: function (aBlock){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPActionParser, "_on_block_", [self, aBlock]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -67,7 +62,6 @@ fn: function (aParser){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPSequenceParser, "_with_with_", [self, aParser]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -79,7 +73,6 @@ fn: function (aParser){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPChoiceParser, "_with_with_", [self, aParser]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -91,7 +84,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPRepeatingParser, "_on_min_", [self, (1)]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -103,7 +95,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPRepeatingParser, "_on_min_", [self, (0)]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -115,7 +106,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.PPNotParser, "_on_", [self]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -127,7 +117,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self, "__slash", [smalltalk.send(smalltalk.PPEpsilonParser, "_new", [])]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -143,7 +132,6 @@ var node=nil;
|
|
|
start=smalltalk.send(aStream, "_position", []);
|
|
|
return smalltalk.send(smalltalk.send(self, "_memo", []), "_at_ifPresent_ifAbsent_", [start, (function(value){smalltalk.send(aStream, "_position_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_memo", []), "_at_", [start]), "_second", [])]);return smalltalk.send(value, "_first", []);}), (function(){node=smalltalk.send(self, "_parse_", [aStream]);end=smalltalk.send(aStream, "_position", []);smalltalk.send(smalltalk.send(self, "_memo", []), "_at_put_", [start, smalltalk.send(smalltalk.Array, "_with_with_", [node, end])]);return node;})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -155,7 +143,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
smalltalk.send(self, "_subclassResponsibility", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -169,7 +156,6 @@ var result=nil;
|
|
|
result=smalltalk.send(smalltalk.send(smalltalk.PPSequenceParser, "_with_with_", [self, smalltalk.send(smalltalk.PPEOFParser, "_new", [])]), "_memoizedParse_", [aStream]);
|
|
|
return smalltalk.send(smalltalk.send(result, "_isParseFailure", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(result, "_messageFor_", [smalltalk.send(aStream, "_contents", [])])]);}), (function(){return smalltalk.send(result, "_first", []);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPParser);
|
|
|
|
|
@@ -184,7 +170,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(aStream, "_atEnd", []), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.PPFailure, "_new", []), "_reason_at_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aStream, "_contents", []), "__comma", [smalltalk.send(smalltalk.String, "_lf", [])]), "__comma", [unescape("---------------")]), "__comma", [smalltalk.send(smalltalk.String, "_lf", [])]), "__comma", ["EOF expected"]), smalltalk.send(aStream, "_position", [])]);}), (function(){return nil;})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPEOFParser);
|
|
|
|
|
@@ -199,7 +184,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(aStream, "_atEnd", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.PPFailure, "_new", []), "_reason_at_", ["did not expect EOF", smalltalk.send(aStream, "_position", [])]);}), (function(){return smalltalk.send(aStream, "_next", []);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPAnyParser);
|
|
|
|
|
@@ -214,7 +198,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return nil;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPEpsilonParser);
|
|
|
|
|
@@ -229,7 +212,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return self['@string'];
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPStringParser);
|
|
|
|
|
@@ -241,7 +223,6 @@ fn: function (aString){
|
|
|
var self=this;
|
|
|
self['@string']=aString;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPStringParser);
|
|
|
|
|
@@ -257,7 +238,6 @@ position=smalltalk.send(aStream, "_position", []);
|
|
|
result=smalltalk.send(aStream, "_next_", [smalltalk.send(smalltalk.send(self, "_string", []), "_size", [])]);
|
|
|
return smalltalk.send(smalltalk.send(result, "__eq", [smalltalk.send(self, "_string", [])]), "_ifTrue_ifFalse_", [(function(){return result;}), (function(){smalltalk.send(aStream, "_position_", [position]);return (function($rec){smalltalk.send($rec, "_reason_", [smalltalk.send(smalltalk.send(smalltalk.send("Expected ", "__comma", [smalltalk.send(self, "_string", [])]), "__comma", [" but got "]), "__comma", [smalltalk.send(smalltalk.send(result, "_at_", [position]), "_printString", [])])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.PPFailure, "_new", []));})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPStringParser);
|
|
|
|
|
@@ -272,7 +252,6 @@ fn: function (aString){
|
|
|
var self=this;
|
|
|
self['@regexp']=smalltalk.send(smalltalk.RegularExpression, "_fromString_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [aString]), "__comma", [unescape("%5D")])]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPCharacterParser);
|
|
|
|
|
@@ -284,7 +263,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aStream, "_peek", []), "_notNil", []), "_and_", [(function(){return smalltalk.send(self, "_match_", [smalltalk.send(aStream, "_peek", [])]);})]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aStream, "_next", []);}), (function(){return smalltalk.send(smalltalk.send(smalltalk.PPFailure, "_new", []), "_reason_at_", ["Could not match", smalltalk.send(aStream, "_position", [])]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPCharacterParser);
|
|
|
|
|
@@ -296,7 +274,6 @@ fn: function (aString){
|
|
|
var self=this;
|
|
|
return smalltalk.send(aString, "_match_", [self['@regexp']]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPCharacterParser);
|
|
|
|
|
@@ -311,7 +288,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@parsers'], "_ifNil_", [(function(){return [];})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPListParser);
|
|
|
|
|
@@ -323,7 +299,6 @@ fn: function (aCollection){
|
|
|
var self=this;
|
|
|
self['@parsers']=aCollection;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPListParser);
|
|
|
|
|
@@ -335,7 +310,6 @@ fn: function (aParser){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(self, "_class", []), "_withAll_", [smalltalk.send(smalltalk.send(self, "_parsers", []), "_copyWith_", [aParser])]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPListParser);
|
|
|
|
|
@@ -348,7 +322,6 @@ fn: function (aCollection){
|
|
|
var self=this;
|
|
|
return (function($rec){smalltalk.send($rec, "_parsers_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPListParser.klass);
|
|
|
|
|
@@ -360,7 +333,6 @@ fn: function (aParser, anotherParser){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self, "_withAll_", [smalltalk.send(smalltalk.Array, "_with_with_", [aParser, anotherParser])]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPListParser.klass);
|
|
|
|
|
@@ -374,7 +346,6 @@ fn: function (aRule){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self, "_copyWith_", [aRule]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPSequenceParser);
|
|
|
|
|
@@ -392,7 +363,6 @@ elements=[];
|
|
|
smalltalk.send(smalltalk.send(self, "_parsers", []), "_detect_ifNone_", [(function(each){element=smalltalk.send(each, "_memoizedParse_", [aStream]);smalltalk.send(elements, "_add_", [element]);return smalltalk.send(element, "_isParseFailure", []);}), (function(){return nil;})]);
|
|
|
return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifFalse_ifTrue_", [(function(){return elements;}), (function(){smalltalk.send(aStream, "_position_", [start]);return element;})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPSequenceParser);
|
|
|
|
|
@@ -407,7 +377,6 @@ fn: function (aRule){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self, "_copyWith_", [aRule]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPChoiceParser);
|
|
|
|
|
@@ -421,7 +390,6 @@ var result=nil;
|
|
|
smalltalk.send(smalltalk.send(self, "_parsers", []), "_detect_ifNone_", [(function(each){result=smalltalk.send(each, "_memoizedParse_", [aStream]);return smalltalk.send(smalltalk.send(result, "_isParseFailure", []), "_not", []);}), (function(){return nil;})]);
|
|
|
return result;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPChoiceParser);
|
|
|
|
|
@@ -436,7 +404,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return self['@parser'];
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPDelegateParser);
|
|
|
|
|
@@ -448,7 +415,6 @@ fn: function (aParser){
|
|
|
var self=this;
|
|
|
self['@parser']=aParser;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPDelegateParser);
|
|
|
|
|
@@ -460,7 +426,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [aStream]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPDelegateParser);
|
|
|
|
|
@@ -473,7 +438,6 @@ fn: function (aParser){
|
|
|
var self=this;
|
|
|
return (function($rec){smalltalk.send($rec, "_parser_", [aParser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPDelegateParser.klass);
|
|
|
|
|
@@ -487,7 +451,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self, "_basicParse_", [aStream]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPAndParser);
|
|
|
|
|
@@ -504,7 +467,6 @@ element=smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [
|
|
|
smalltalk.send(aStream, "_position_", [position]);
|
|
|
return element;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPAndParser);
|
|
|
|
|
@@ -521,7 +483,6 @@ var element=nil;
|
|
|
element=smalltalk.send(self, "_basicParse_", [aStream]);
|
|
|
return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifTrue_ifFalse_", [(function(){return nil;}), (function(){return smalltalk.send(smalltalk.PPFailure, "_reason_at_", [element, smalltalk.send(aStream, "_position", [])]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPNotParser);
|
|
|
|
|
@@ -536,7 +497,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return self['@block'];
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPActionParser);
|
|
|
|
|
@@ -548,7 +508,6 @@ fn: function (aBlock){
|
|
|
var self=this;
|
|
|
self['@block']=aBlock;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPActionParser);
|
|
|
|
|
@@ -562,7 +521,6 @@ var element=nil;
|
|
|
element=smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [aStream]);
|
|
|
return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_block", []), "_value_", [element]);}), (function(){return element;})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPActionParser);
|
|
|
|
|
@@ -575,7 +533,6 @@ fn: function (aParser, aBlock){
|
|
|
var self=this;
|
|
|
return (function($rec){smalltalk.send($rec, "_parser_", [aParser]);smalltalk.send($rec, "_block_", [aBlock]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPActionParser.klass);
|
|
|
|
|
@@ -594,7 +551,6 @@ start=smalltalk.send(aStream, "_position", []);
|
|
|
element=smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [aStream]);
|
|
|
return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifTrue_ifFalse_", [(function(){return element;}), (function(){return smalltalk.send(smalltalk.send(aStream, "_collection", []), "_copyFrom_to_", [smalltalk.send(start, "__plus", [(1)]), smalltalk.send(aStream, "_position", [])]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFlattenParser);
|
|
|
|
|
@@ -615,7 +571,6 @@ start=smalltalk.send(aStream, "_position", []);
|
|
|
element=smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [aStream]);
|
|
|
return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifTrue_ifFalse_", [(function(){return element;}), (function(){result=smalltalk.send(smalltalk.send(aStream, "_collection", []), "_copyFrom_to_", [smalltalk.send(start, "__plus", [(1)]), smalltalk.send(aStream, "_position", [])]);return smalltalk.send(smalltalk.Array, "_with_with_", [element, result]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPSourceParser);
|
|
|
|
|
@@ -630,7 +585,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return self['@min'];
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPRepeatingParser);
|
|
|
|
|
@@ -642,7 +596,6 @@ fn: function (aNumber){
|
|
|
var self=this;
|
|
|
self['@min']=aNumber;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPRepeatingParser);
|
|
|
|
|
@@ -661,7 +614,6 @@ elements=smalltalk.send(smalltalk.Array, "_new", []);
|
|
|
smalltalk.send((function(){return smalltalk.send(smalltalk.send(smalltalk.send(elements, "_size", []), "__lt", [smalltalk.send(self, "_min", [])]), "_and_", [(function(){return smalltalk.send(failure, "_isNil", []);})]);}), "_whileTrue_", [(function(){element=smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [aStream]);return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(elements, "_addLast_", [element]);}), (function(){smalltalk.send(aStream, "_position_", [start]);return failure=element;})]);})]);
|
|
|
return smalltalk.send(failure, "_ifNil_ifNotNil_", [(function(){smalltalk.send((function(){return smalltalk.send(failure, "_isNil", []);}), "_whileTrue_", [(function(){element=smalltalk.send(smalltalk.send(self, "_parser", []), "_memoizedParse_", [aStream]);return smalltalk.send(smalltalk.send(element, "_isParseFailure", []), "_ifTrue_ifFalse_", [(function(){return failure=element;}), (function(){return smalltalk.send(elements, "_addLast_", [element]);})]);})]);return elements;}), (function(){return failure;})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPRepeatingParser);
|
|
|
|
|
@@ -674,7 +626,6 @@ fn: function (aParser, aNumber){
|
|
|
var self=this;
|
|
|
return (function($rec){smalltalk.send($rec, "_parser_", [aParser]);smalltalk.send($rec, "_min_", [aNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPRepeatingParser.klass);
|
|
|
|
|
@@ -688,7 +639,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@position'], "_ifNil_", [(function(){return (0);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -700,7 +650,6 @@ fn: function (aNumber){
|
|
|
var self=this;
|
|
|
self['@position']=aNumber;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -712,7 +661,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@reason'], "_ifNil_", [(function(){return "";})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -724,7 +672,6 @@ fn: function (aString){
|
|
|
var self=this;
|
|
|
self['@reason']=aString;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -736,7 +683,6 @@ fn: function (aString, anInteger){
|
|
|
var self=this;
|
|
|
(function($rec){smalltalk.send($rec, "_reason_", [aString]);return smalltalk.send($rec, "_position_", [anInteger]);})(self);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -748,7 +694,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return true;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -760,7 +705,6 @@ fn: function (aVisitor){
|
|
|
var self=this;
|
|
|
smalltalk.send(aVisitor, "_visitFailure_", [self]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -772,7 +716,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(self['@reason'], "__comma", [" at "]), "__comma", [smalltalk.send(self['@position'], "_asString", [])]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure);
|
|
|
|
|
@@ -785,7 +728,6 @@ fn: function (aString, anInteger){
|
|
|
var self=this;
|
|
|
return (function($rec){smalltalk.send($rec, "_reason_at_", [aString, anInteger]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.PPFailure.klass);
|
|
|
|
|
@@ -799,7 +741,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(self, "_parser", []), "_parse_", [aStream]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.SmalltalkParser);
|
|
|
|
|
@@ -906,7 +847,6 @@ smalltalk.send(expression, "_parser_", [smalltalk.send(smalltalk.send(smalltalk.
|
|
|
method=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(ws, "__comma", [smalltalk.send(smalltalk.send(keywordPattern, "__slash", [binaryPattern]), "__slash", [unaryPattern])]), "__comma", [ws]), "__comma", [smalltalk.send(sequence, "_optional", [])]), "__comma", [ws]), "_withSource", []), "__eq_eq_gt", [(function(node){return (function($rec){smalltalk.send($rec, "_selector_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_first", []), "_second", []), "_first", [])]);smalltalk.send($rec, "_arguments_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_first", []), "_second", []), "_second", [])]);smalltalk.send($rec, "_addNode_", [smalltalk.send(smalltalk.send(node, "_first", []), "_fourth", [])]);smalltalk.send($rec, "_source_", [smalltalk.send(node, "_second", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.MethodNode, "_new", []));})]);
|
|
|
return smalltalk.send(smalltalk.send(method, "__comma", [smalltalk.send(smalltalk.PPEOFParser, "_new", [])]), "__eq_eq_gt", [(function(node){return smalltalk.send(node, "_first", []);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.SmalltalkParser);
|
|
|
|
|
@@ -919,7 +859,6 @@ fn: function (aStream){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(self, "_new", []), "_parse_", [aStream]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.SmalltalkParser.klass);
|
|
|
|
|
@@ -933,7 +872,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@contents'], "_ifNil_", [(function(){return "";})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Chunk);
|
|
|
|
|
@@ -945,7 +883,6 @@ fn: function (aString){
|
|
|
var self=this;
|
|
|
self['@contents']=aString;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Chunk);
|
|
|
|
|
@@ -957,7 +894,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return false;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Chunk);
|
|
|
|
|
@@ -969,7 +905,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return false;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Chunk);
|
|
|
|
|
@@ -984,7 +919,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return true;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.InstructionChunk);
|
|
|
|
|
@@ -999,7 +933,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return true;
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.EmptyChunk);
|
|
|
|
|
@@ -1014,7 +947,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@parser'], "_ifNil_", [(function(){return self['@parser']=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_instructionChunk", []), "__slash", [smalltalk.send(self, "_emptyChunk", [])]), "__slash", [smalltalk.send(self, "_chunk", [])]), "__slash", [smalltalk.send(self, "_eof", [])]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1026,7 +958,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@eof'], "_ifNil_", [(function(){return self['@eof']=smalltalk.send(smalltalk.send(smalltalk.send(self, "_ws", []), "__comma", [smalltalk.send(smalltalk.PPEOFParser, "_new", [])]), "__eq_eq_gt", [(function(node){return nil;})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1038,7 +969,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@separator'], "_ifNil_", [(function(){return self['@separator']=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.String, "_cr", []), "__comma", [smalltalk.send(smalltalk.String, "_space", [])]), "__comma", [smalltalk.send(smalltalk.String, "_lf", [])]), "__comma", [smalltalk.send(smalltalk.String, "_tab", [])]), "_asChoiceParser", []);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1050,7 +980,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@ws'], "_ifNil_", [(function(){return self['@ws']=smalltalk.send(smalltalk.send(self, "_separator", []), "_star", []);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1062,7 +991,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@chunk'], "_ifNil_", [(function(){return self['@chunk']=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_ws", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%21%21"), "_asParser", []), "__slash", [smalltalk.send(smalltalk.send(smalltalk.send(unescape("%21"), "_asParser", []), "_not", []), "__comma", [smalltalk.send(smalltalk.PPAnyParser, "_new", [])])]), "_plus", []), "_flatten", [])]), "__comma", [smalltalk.send(unescape("%21"), "_asParser", [])]), "__eq_eq_gt", [(function(node){return smalltalk.send(smalltalk.send(smalltalk.Chunk, "_new", []), "_contents_", [smalltalk.send(smalltalk.send(smalltalk.send(node, "_second", []), "_replace_with_", [unescape("%21%21"), unescape("%21")]), "_trimBoth", [])]);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1074,7 +1002,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@emptyChunk'], "_ifNil_", [(function(){return self['@emptyChunk']=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_separator", []), "_plus", []), "__comma", [smalltalk.send(unescape("%21"), "_asParser", [])]), "__comma", [smalltalk.send(self, "_ws", [])]), "__eq_eq_gt", [(function(node){return smalltalk.send(smalltalk.EmptyChunk, "_new", []);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1086,7 +1013,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@instructionChunk'], "_ifNil_", [(function(){return self['@instructionChunk']=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_ws", []), "__comma", [smalltalk.send(unescape("%21"), "_asParser", [])]), "__comma", [smalltalk.send(self, "_chunk", [])]), "__eq_eq_gt", [(function(node){return smalltalk.send(smalltalk.send(smalltalk.InstructionChunk, "_new", []), "_contents_", [smalltalk.send(smalltalk.send(node, "_last", []), "_contents", [])]);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkParser);
|
|
|
|
|
@@ -1101,7 +1027,6 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.send(self['@chunkParser'], "_ifNil_", [(function(){return self['@chunkParser']=smalltalk.send(smalltalk.send(smalltalk.ChunkParser, "_new", []), "_parser", []);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Importer);
|
|
|
|
|
@@ -1114,7 +1039,6 @@ var self=this;
|
|
|
smalltalk.send(smalltalk.send(aStream, "_atEnd", []), "_ifFalse_", [(function(){var nextChunk=nil;
|
|
|
nextChunk=smalltalk.send(smalltalk.send(self, "_chunkParser", []), "_parse_", [aStream]);return smalltalk.send(nextChunk, "_ifNotNil_", [(function(){smalltalk.send(smalltalk.send(nextChunk, "_isInstructionChunk", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(nextChunk, "_contents", [])]), "_scanFrom_", [aStream]);}), (function(){return smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(nextChunk, "_contents", [])]);})]);return smalltalk.send(self, "_import_", [aStream]);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Importer);
|
|
|
|
|
@@ -1133,7 +1057,6 @@ smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk,
|
|
|
smalltalk.send(self, "_exportCategoryExtensions_on_", [aString, stream]);
|
|
|
return smalltalk.send(stream, "_contents", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1151,7 +1074,6 @@ smalltalk.send(self, "_exportMetaDefinitionOf_on_", [aClass, stream]);
|
|
|
smalltalk.send(self, "_exportMethodsOf_on_", [smalltalk.send(aClass, "_class", []), stream]);
|
|
|
return smalltalk.send(stream, "_contents", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1167,7 +1089,6 @@ smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_do_separa
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_comment", []), "_notEmpty", []), "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", ["smalltalk."]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [aClass])]);smalltalk.send($rec, "_nextPutAll_", [unescape(".comment%3D")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aClass, "_comment", []), "_escaped", [])]), "__comma", [unescape("%27%29")])]);})(aStream);})]);
|
|
|
smalltalk.send(aStream, "_lf", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1179,7 +1100,6 @@ fn: function (aClass, aStream){
|
|
|
var self=this;
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_isEmpty", []), "_ifFalse_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_class", [])])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape(".iVarNames%20%3D%20%5B")]);})(aStream);smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [each]), "__comma", [unescape("%27")])]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%2C")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(unescape("%5D%3B"), "__comma", [smalltalk.send(smalltalk.String, "_lf", [])])]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1192,7 +1112,6 @@ var self=this;
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_category", []), "_match_", [unescape("%5E%5C*")]), "_ifFalse_", [(function(){return smalltalk.send(self, "_exportMethod_of_on_", [each, aClass, aStream]);})]);})]);
|
|
|
smalltalk.send(aStream, "_lf", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1204,7 +1123,6 @@ fn: function (aClass){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(aClass, "_isMetaclass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [".klass"]);}), (function(){return smalltalk.send(smalltalk.send(aClass, "_isNil", []), "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1218,7 +1136,6 @@ var self=this;
|
|
|
smalltalk.send(smalltalk.send(aMethod, "_referencedClasses", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [each])])]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%2C")]);})]);
|
|
|
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%5D")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1230,7 +1147,6 @@ fn: function (aString, aStream){
|
|
|
var self=this;
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(method){return smalltalk.send(smalltalk.send(smalltalk.send(method, "_category", []), "__eq", [smalltalk.send(unescape("*"), "__comma", [aString])]), "_ifTrue_", [(function(){return smalltalk.send(self, "_exportMethod_of_on_", [method, each, aStream]);})]);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.Exporter);
|
|
|
|
|
@@ -1249,7 +1165,6 @@ smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_do_separa
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_comment", []), "_notEmpty", []), "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%21"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])]), "__comma", [unescape("%20commentStamp%21")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_chunkEscape_", [smalltalk.send(aClass, "_comment", [])]), "__comma", [unescape("%21")])]);return smalltalk.send($rec, "_lf", []);})(aStream);})]);
|
|
|
smalltalk.send(aStream, "_lf", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1261,7 +1176,6 @@ fn: function (aMethod, aClass, aStream){
|
|
|
var self=this;
|
|
|
(function($rec){smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_chunkEscape_", [smalltalk.send(aMethod, "_source", [])])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [unescape("%21")]);})(aStream);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1273,7 +1187,6 @@ fn: function (aClass, aStream){
|
|
|
var self=this;
|
|
|
smalltalk.send(aClass, "_protocolsDo_", [(function(category, methods){return smalltalk.send(smalltalk.send(category, "_match_", [unescape("%5E%5C*")]), "_ifFalse_", [(function(){return smalltalk.send(self, "_exportMethods_category_of_on_", [methods, category, aClass, aStream]);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1285,7 +1198,6 @@ fn: function (aClass, aStream){
|
|
|
var self=this;
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_isEmpty", []), "_ifFalse_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_class", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%20instanceVariableNames%3A%20%27")]);})(aStream);smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%27%21")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1297,7 +1209,6 @@ fn: function (aClass){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(aClass, "_isMetaclass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [" class"]);}), (function(){return smalltalk.send(smalltalk.send(aClass, "_isNil", []), "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1309,7 +1220,6 @@ fn: function (aString){
|
|
|
var self=this;
|
|
|
return smalltalk.send(smalltalk.send(aString, "_replace_with_", [unescape("%21"), unescape("%21%21")]), "_trimBoth", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1321,7 +1231,6 @@ fn: function (aString, aStream){
|
|
|
var self=this;
|
|
|
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]), "_do_", [(function(each){return smalltalk.send(each, "_protocolsDo_", [(function(category, methods){return smalltalk.send(smalltalk.send(category, "__eq", [smalltalk.send(unescape("*"), "__comma", [aString])]), "_ifTrue_", [(function(){return smalltalk.send(self, "_exportMethods_category_of_on_", [methods, category, each, aStream]);})]);})]);})]);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1335,7 +1244,6 @@ var self=this;
|
|
|
smalltalk.send(methods, "_do_", [(function(each){return smalltalk.send(self, "_exportMethod_of_on_", [each, aClass, aStream]);})]);
|
|
|
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%20%21")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
@@ -1353,7 +1261,6 @@ smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_do_separa
|
|
|
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%5D%2C%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(aClass, "_category", []), "__comma", [unescape("%27")])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);})(aStream);
|
|
|
smalltalk.send(aStream, "_lf", []);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.StrippedExporter);
|
|
|
|
|
@@ -1363,9 +1270,8 @@ smalltalk.method({
|
|
|
selector: 'exportMethod:of:on:',
|
|
|
fn: function (aMethod, aClass, aStream){
|
|
|
var self=this;
|
|
|
-(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20%27"), "__comma", [smalltalk.send(aMethod, "_selector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%5D")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
|
|
|
+(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20%27"), "__comma", [smalltalk.send(aMethod, "_selector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
|
|
|
return self;}
|
|
|
-]
|
|
|
}),
|
|
|
smalltalk.StrippedExporter);
|
|
|
|