added scalaint internal commands to description

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@7708 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2006-06-07 11:35:38 +00:00
parent cf2448c73e
commit ff8b5b0c6e
3 changed files with 16 additions and 5 deletions

View File

@ -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>")

View File

@ -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",

View File

@ -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",