doc fix
This commit is contained in:
parent
79a2dedd2d
commit
71f356a100
21
README
21
README
|
@ -3,6 +3,7 @@ Whalesong: a compiler from Racket to JavaScript.
|
||||||
|
|
||||||
Danny Yoo (dyoo@cs.wpi.edu)
|
Danny Yoo (dyoo@cs.wpi.edu)
|
||||||
|
|
||||||
|
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,9 +17,27 @@ amount of time.
|
||||||
|
|
||||||
Example usage
|
Example usage
|
||||||
|
|
||||||
[FIXME]
|
[TODO: make this a reality... The lang line would preferably be
|
||||||
|
#lang planet dyoo/whalesong]
|
||||||
|
|
||||||
|
|
||||||
|
Create a simple, standalong executable of your program. At the
|
||||||
|
moment, the program must be written in the base language of whalesong.
|
||||||
|
(This restriction currently prevents arbitrary racket/base programs
|
||||||
|
from compiling, and we'll be working to remove this restriction.)
|
||||||
|
|
||||||
|
$ cat hello.rkt
|
||||||
|
#lang s-exp "lang/base.rkt"
|
||||||
|
(display "hello world")
|
||||||
|
(newline)
|
||||||
|
|
||||||
|
$ ./whalesong.rkt build hello.rkt
|
||||||
|
|
||||||
|
$ ls -l hello.xhtml
|
||||||
|
-rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.xhtml
|
||||||
|
|
||||||
|
|
||||||
|
[FIXME: add more examples]
|
||||||
|
|
||||||
|
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user