1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-11 01:36:38 +00:00

Update README.md

This commit is contained in:
Calvin Rose 2018-03-16 15:52:56 -04:00
parent 110c780747
commit e3ba79428a

@ -34,6 +34,29 @@ are fairly straight forward. Dst can be easily ported to new platforms.
* Lexical scoping
* REPL
## Usage
A repl is launched when the binary is invoked with no arguments. Pass the -h flag
to display the usage information.
```
$ ./dst
Dst 0.0.0 alpha Copyright (C) 2017-2018 Calvin Rose
> (+ 1 2 3)
6
> (print "Hello, World!")
Hello, World!
nil
> (exit)
$ ./dst -h
usage: ./dst [options] scripts...
Options are:
-h Show this help
-v Print the version string
-r Enter the repl after running all scripts
$
```
## Compiling and Running
Dst is built using CMake. There used to be a hand-written Makefile, but in the interest of
@ -57,6 +80,11 @@ The repl can also be run with the CMake run target.
make run
```
### Example
### Examples
See the lin directory for some example dst code.
See the examples directory for some example dst code.
### Editor
There is some preliminary vim syntax highlighting in [dst.vim](https://github.com/bakpakin/dst.vim).
Generic lisp synatx highlighting should provide good results, however.