diff options
author | michelou <michelou@epfl.ch> | 2006-06-07 11:35:38 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-06-07 11:35:38 +0000 |
commit | a2f0ad4b7eacfc80521d09fb8a64368491ea8fd7 (patch) | |
tree | c45e3a66a1f8184a8159e1fc6ae403b0bbd547cc /docs | |
parent | 0ab820501a2cd3a3fac90fdd4dea1a432d49de9e (diff) | |
download | scala-a2f0ad4b7eacfc80521d09fb8a64368491ea8fd7.tar.gz scala-a2f0ad4b7eacfc80521d09fb8a64368491ea8fd7.tar.bz2 scala-a2f0ad4b7eacfc80521d09fb8a64368491ea8fd7.zip |
added scalaint internal commands to description
Diffstat (limited to 'docs')
-rw-r--r-- | docs/man/src/man/EmitManPage.scala | 2 | ||||
-rw-r--r-- | docs/man/src/man/man1/scalaint.scala | 13 | ||||
-rw-r--r-- | docs/man/src/man/man1/scalascript.scala | 6 |
3 files changed, 16 insertions, 5 deletions
diff --git a/docs/man/src/man/EmitManPage.scala b/docs/man/src/man/EmitManPage.scala index 1cc05ef8e2..7bc4bf58e2 100644 --- a/docs/man/src/man/EmitManPage.scala +++ b/docs/man/src/man/EmitManPage.scala @@ -88,7 +88,7 @@ object EmitManPage { case CodeSample(text) => out.println("\n.nf") out.print(text) - out.println(".fi") + out.println("\n.fi") case lst:BulletList => out.println("<ul>") diff --git a/docs/man/src/man/man1/scalaint.scala b/docs/man/src/man/man1/scalaint.scala index 35cb1fec0f..a22182f47f 100644 --- a/docs/man/src/man/man1/scalaint.scala +++ b/docs/man/src/man/man1/scalaint.scala @@ -32,7 +32,18 @@ object scalaint extends Command { "The " & MBold(command) & " tool reads class and object definitions, " & "written in the Scala programming language, and interprets them in an " & - "interactive shell environment.") + "interactive shell environment.", + + "The shell environment provides the following internal commands:", + + CodeSample("This is an interpreter for Scala.\n" + + "Type in expressions to have them evaluated.\n" + + "Type :quit to exit the interpreter.\n" + + "Type :compile followed by a filename to compile a complete Scala file.\n" + + "Type :load followed by a filename to load a sequence of interpreter commands.\n" + + "Type :replay to reset execution and replay all previous commands.\n" + + "Type :help to repeat this message later.\n\n" + + "scala>")) val examples = Section("EXAMPLES", diff --git a/docs/man/src/man/man1/scalascript.scala b/docs/man/src/man/man1/scalascript.scala index 440f0d2b09..fdb6e141d8 100644 --- a/docs/man/src/man/man1/scalascript.scala +++ b/docs/man/src/man/man1/scalascript.scala @@ -46,7 +46,7 @@ object scalascript extends Command { CodeSample( "#!/bin/sh\n" + "exec scalascript \"$0\" \"$@\"\n" + - "!#\n"), + "!#"), "To write a Scala script as a Microsoft Windows batch file, start " & "the " & Mono(".bat") & " file with the following header:", @@ -56,7 +56,7 @@ object scalascript extends Command { "@echo off\n" + "call scalascript %0 %*\n" + "goto :eof\n" + - "::!#\n")) + "::!#")) val examples = Section("EXAMPLES", @@ -68,7 +68,7 @@ object scalascript extends Command { "exec scalascript \"$0\" \"$@\"\n" + "!#\n" + "Console.println(\"Hello, world!\")\n" + - "argv.toList foreach Console.println\n")) + "argv.toList foreach Console.println")) override val authors = Section("AUTHOR", |