Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/S-expressions/EchoLisp/s-expressions.l
Normal file
16
Task/S-expressions/EchoLisp/s-expressions.l
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(define input-string #'((data "quoted data" 123 4.5)\n(data (!@# (4.5) "(more" "data)")))'#)
|
||||
|
||||
input-string
|
||||
→ "((data "quoted data" 123 4.5)
|
||||
(data (!@# (4.5) "(more" "data)")))"
|
||||
|
||||
(define s-expr (read-from-string input-string))
|
||||
s-expr
|
||||
→ ((data "quoted data" 123 4.5) (data (!@# (4.5) "(more" "data)")))
|
||||
|
||||
(first s-expr)
|
||||
→ (data "quoted data" 123 4.5)
|
||||
(first(first s-expr))
|
||||
→ data
|
||||
(first(rest s-expr))
|
||||
→ (data (!@# (4.5) "(more" "data)"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue