ReadEvalPrintLoop.st
changeset 22776 a605605e6324
parent 22775 e42cbc3a3e7b
child 22778 40db6cd606e4
equal deleted inserted replaced
22775:e42cbc3a3e7b 22776:a605605e6324
   692 Lines starting with "#" (in the first column) are commands to the read-eval-print interpreter.
   692 Lines starting with "#" (in the first column) are commands to the read-eval-print interpreter.
   693 
   693 
   694 Valid commands are:
   694 Valid commands are:
   695     #exit ............... exit interpreter loop
   695     #exit ............... exit interpreter loop
   696     #help ............... this text
   696     #help ............... this text
       
   697     #ide ................ open the IDE
   697     #apropos word ....... list classes/selectors matching word
   698     #apropos word ....... list classes/selectors matching word
   698     #list <what> ........ show source
   699     #list <what> ........ show source
   699         class .............. class definition and comment
   700         class .............. class definition and comment
   700         class selector ..... method source
   701         class selector ..... method source
   701     #read <filename>..... read another script or source file
   702     #read <filename>..... read another script or source file
   744 !
   745 !
   745 
   746 
   746 cmd_ide:lineStream
   747 cmd_ide:lineStream
   747     "upen up the ide"
   748     "upen up the ide"
   748 
   749 
   749     Smalltalk mainStartup:true.
   750     NewLauncher open.
   750 !
   751 !
   751 
   752 
   752 cmd_language:lineStream
   753 cmd_language:lineStream
   753     "language directive; i.e.
   754     "language directive; i.e.
   754         #language smalltalk
   755         #language smalltalk
  1192 
  1193 
  1193 showBreakpoints
  1194 showBreakpoints
  1194     Smalltalk allClassesDo:[:cls |
  1195     Smalltalk allClassesDo:[:cls |
  1195         cls theNonMetaclass instAndClassSelectorsAndMethodsDo:[:sel :mthd |
  1196         cls theNonMetaclass instAndClassSelectorsAndMethodsDo:[:sel :mthd |
  1196             mthd isWrapped ifTrue:[
  1197             mthd isWrapped ifTrue:[
  1197                 stderr showCR:'  %1' with:(mthd whoString)
  1198                 stderr showCR:(mthd whoString)
  1198             ].
  1199             ].
  1199         ].
  1200         ].
  1200     ].
  1201     ].
  1201 
  1202 
  1202     "
  1203     "