Explorar o código

Merge pull request #289 from mkroehnert/repl

fixes for Amber REPL
Nicolas Petton %!s(int64=12) %!d(string=hai) anos
pai
achega
2846b082e2
Modificáronse 4 ficheiros con 311 adicións e 56 borrados
  1. 1 1
      repl/Makefile
  2. 12 9
      repl/REPL.js
  3. 1 1
      repl/REPL.st
  4. 297 45
      repl/amber.js

+ 1 - 1
repl/Makefile

@@ -1,5 +1,5 @@
 repl.js: REPL.st
-	../bin/amberc -m Repl REPL.st amber
+	../bin/amberc -m Repl -l Compiler-Core,Compiler-Exceptions,Compiler-AST,Compiler-IR,Compiler-Inlining,Compiler-Semantic,parser REPL.st amber
 
 run: repl.js
 	../bin/amber

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 12 - 9
repl/REPL.js


+ 1 - 1
repl/REPL.st

@@ -31,7 +31,7 @@ eval: buffer
 	| result |
 	buffer isEmpty ifFalse: [
 		self try: [
-			result := Compiler new loadExpression: buffer.
+			result := Compiler new evaluateExpression: buffer.
 			Transcript show: result]
 		catch: [:e |
 			e isSmalltalkError

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 297 - 45
repl/amber.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio