Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== libyaml Read or dump yaml. Repository is in: * [[https://codeberg.org/rikuri/libyaml.ss]] Note that this page may be out of date. The latest exact document should be deployed as part of the repository: * [[https://codeberg.org/rikuri/libyaml.ss/src/branch/main/docs/usage.md]] Read the documents in the repository for futher help. === Requirememnts [[varg]] === Simple examples ==== Reading yaml Use '''yaml<-''' procedure for reading yaml. <enscript highlight="scheme"> (yaml<- "--- 1\n--- 2\n...") ;will return a procedure ((yaml<- "--- 1\n--- 2\n...")) ;will return 1 ((yaml<- "--- 1\n--- 2\n...") 0) ;will return 1 ((yaml<- "--- 1\n--- 2\n...") 1) ;will return 2 ((yaml<- "--- 1\n--- 2\n...") -1) ;will return '(1 2) ((yaml<- "--- 1\n--- 2\n...") 2) ;will abort by exception (yaml<-) ;will try to read yaml from (current-input-port) and return a procedure </enscript> For more element, such as yaml-list, yaml-mapping, refer to: * [[https://codeberg.org/rikuri/libyaml.ss/src/branch/main/docs/usage.md#yaml-and-scheme]] * [[https://codeberg.org/rikuri/libyaml.ss/media/branch/main/docs/yns/yns.svg]] ==== Dumping yaml Use '''<-yaml''' procedure for dumping yaml. <enscript highlight="scheme"> (<-yaml #:strict-input (yaml<- "[1]")) (<-yaml ((yaml<- "[1]"))) (<-yaml #("1st" ())) (<-yaml `(#:port . ,(current-output-port)) ((yaml<- "---\n---\n---\n[1,2,3]") 2)) </enscript>
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you add 11 to 18?