1
0
Kaynağa Gözat

Make the codeGenerator pluggable

Nicolas Petton 13 yıl önce
ebeveyn
işleme
9df7ac8666
3 değiştirilmiş dosya ile 256 ekleme ve 225 silme
  1. 122 111
      js/Compiler.deploy.js
  2. 128 112
      js/Compiler.js
  3. 6 2
      st/Compiler.st

Dosya farkı çok büyük olduğundan ihmal edildi
+ 122 - 111
js/Compiler.deploy.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 128 - 112
js/Compiler.js


+ 6 - 2
st/Compiler.st

@@ -41,13 +41,17 @@ on: aStream
 ! !
 
 Object subclass: #Compiler
-	instanceVariableNames: 'currentClass source unknownVariables'
+	instanceVariableNames: 'currentClass source unknownVariables codeGeneratorClass'
 	package: 'Compiler'!
 
 !Compiler methodsFor: 'accessing'!
 
 codeGeneratorClass
-	^FunCodeGenerator
+	^codeGeneratorClass ifNil: [FunCodeGenerator]
+!
+
+codeGeneratorClass: aClass
+	codeGeneratorClass := aClass
 !
 
 currentClass

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor