Skip to content

Commit 839a5e4

Browse files
committed
Add a few more harlani commands.
1 parent 32eed36 commit 839a5e4

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

harlani.scm

+18-14
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@
1818

1919
(parse-args (command-line))
2020

21-
(display "Some useful options:\n")
22-
(display " (exit) -- Exit harlani\n")
23-
(display " (make-shared-object) -- Compile to a shared library instead of an executable\n")
24-
(display " (harlan-library-path) -- Where Harlan finds imported libraries\n")
25-
(display " (harlan-runtime-path) -- Where Harlan finds its runtime files\n")
26-
(display " (verbose) -- Make Harlan print detailed information\n")
27-
(display " (debug) -- Generate debugging information\n")
28-
(display " (timing) -- Display pass timing information\n")
29-
(display " (trace-pass) -- Turn on tracing for a given pass\n")
30-
(display " (untrace-pass) -- Turn off tracing for a given pass\n")
31-
(display "\n")
32-
(display "Compile a file with (compile \"filename\")\n")
21+
(define (help)
22+
(display "Some useful options:\n")
23+
(display " (exit) -- Exit harlani\n")
24+
(display " (make-shared-object) -- Compile to a shared library instead of an executable\n")
25+
(display " (harlan-library-path) -- Where Harlan finds imported libraries\n")
26+
(display " (harlan-runtime-path) -- Where Harlan finds its runtime files\n")
27+
(display " (verbose) -- Make Harlan print detailed information\n")
28+
(display " (debug) -- Generate debugging information\n")
29+
(display " (timing) -- Display pass timing information\n")
30+
(display " (trace-pass) -- Turn on tracing for a given pass\n")
31+
(display " (untrace-pass) -- Turn off tracing for a given pass\n")
32+
(display "\n")
33+
(display "Compile a file with (compile \"filename\")\n"))
34+
35+
(help)
3336

3437
(define-syntax try
3538
(syntax-rules (catch)
@@ -57,12 +60,13 @@
5760
(lambda (exit)
5861
(let repl ()
5962
(display "> ")
60-
(match-commands
61-
(read)
63+
(match-commands (read)
64+
help
6265
make-shared-object
6366
harlan-library-path
6467
harlan-runtime-path
6568
compile
69+
no-kernels
6670
verbose
6771
debug
6872
timing

0 commit comments

Comments
 (0)