mirror of
https://github.com/tweag/nickel.git
synced 2024-10-05 23:57:09 +03:00
Fix command output
This commit is contained in:
parent
77c6ed3048
commit
ba08865683
@ -88,15 +88,13 @@ abstractions or just feel ad hoc. Nickel buys you more for less.
|
||||
2. Run your first program:
|
||||
```console
|
||||
$ ./nickel <<< 'let x = 2 in x + x'
|
||||
Typechecked: Ok(Types(Dyn))
|
||||
Done: Num(4.0)
|
||||
4
|
||||
```
|
||||
Or load it from a file:
|
||||
```console
|
||||
$ echo 'let s = "world" in "Hello, " ++ s' > program.ncl
|
||||
$ ./nickel -f program.ncl
|
||||
Typechecked: Ok(Types(Dyn))
|
||||
Done: Str("Hello, world")
|
||||
"Hello, world"
|
||||
```
|
||||
3. Start a REPL:
|
||||
```console
|
||||
|
Loading…
Reference in New Issue
Block a user