Pārlūkot izejas kodu

cli: class comments for Repl

Manfred Kroehnert 11 gadi atpakaļ
vecāks
revīzija
9ec19595c9
2 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 1 0
      cli/js/AmberCli.js
  2. 6 0
      cli/st/AmberCli.st

+ 1 - 0
cli/js/AmberCli.js

@@ -1118,6 +1118,7 @@ smalltalk.FileServer.klass);
 
 
 smalltalk.addClass('Repl', smalltalk.Object, ['readline', 'interface', 'util'], 'AmberCli');
+smalltalk.Repl.comment="I am a class representing a REPL (Read Evaluate Print Loop) and provide a command line interface to Amber Smalltalk.\x0aOn the prompt you can type Amber statements which will be evaluated after pressing <Enter>.\x0aThe evaluation is comparable with executing a 'DoIt' in a workspace.\x0a\x0aMy runtime requirement is a functional Node.js executable with working Readline support."
 smalltalk.addMethod(
 smalltalk.method({
 selector: "close",

+ 6 - 0
cli/st/AmberCli.st

@@ -845,6 +845,12 @@ main
 Object subclass: #Repl
 	instanceVariableNames: 'readline interface util'
 	package: 'AmberCli'!
+!Repl commentStamp!
+I am a class representing a REPL (Read Evaluate Print Loop) and provide a command line interface to Amber Smalltalk.
+On the prompt you can type Amber statements which will be evaluated after pressing <Enter>.
+The evaluation is comparable with executing a 'DoIt' in a workspace.
+
+My runtime requirement is a functional Node.js executable with working Readline support.!
 
 !Repl methodsFor: 'accessing'!