Fixed readme

This commit is contained in:
Linus 2021-08-05 16:36:43 +02:00
parent db4fa87d4b
commit 7e3b4d09dd

View file

@ -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)