1
0
Pārlūkot izejas kodu

Merge pull request #289 from mkroehnert/repl

fixes for Amber REPL
Nicolas Petton 12 gadi atpakaļ
vecāks
revīzija
2846b082e2
4 mainītis faili ar 311 papildinājumiem un 56 dzēšanām
  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

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 297 - 45
repl/amber.js


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels