Fixed readme
This commit is contained in:
parent
db4fa87d4b
commit
7e3b4d09dd
1 changed files with 5 additions and 0 deletions
|
@ -24,12 +24,17 @@ It differs from Racket's at-expr in that it is not a proper reader extension, bu
|
||||||
|
|
||||||
```
|
```
|
||||||
@<cmd><[args ...]{squiggly ...}
|
@<cmd><[args ...]{squiggly ...}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Where all parts are optional, but you have to have at least one.
|
Where all parts are optional, but you have to have at least one.
|
||||||
|
|
||||||
cmd and args are read with guile's normal reader. Squiggly is special. Any normal text between { and } is read as a string. If an @ is found, whatever follows is interpreted as an at-expr. To write a literal at, you have to do @"@".
|
cmd and args are read with guile's normal reader. Squiggly is special. Any normal text between { and } is read as a string. If an @ is found, whatever follows is interpreted as an at-expr. To write a literal at, you have to do @"@".
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
``` scheme
|
||||||
#@list(1 2 3) ;;=> (list 1 2 3)
|
#@list(1 2 3) ;;=> (list 1 2 3)
|
||||||
#@list{My name is: @(read)} => (list "My name is: " (read))
|
#@list{My name is: @(read)} => (list "My name is: " (read))
|
||||||
#@+(1 2) ;; => (+ 1 2)
|
#@+(1 2) ;; => (+ 1 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue