Skip to content

Cirru/cirru-edn.mbt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiye/cirru-edn

Experimental port from cirru-edn.rs .

moon install tiye/cirru-edn

import it as edn:

"import": [{ "path": "tiye/cirru-edn", "alias": "edn" }],
using @edn {type Edn}
match (try? Edn::parse(demo)) {
  Ok(x) => {
    println(x.to_string())
    println(x.format?(use_inline=false).unwrap())
  }
  Err(e) => println("error:" + e.to_string())
}

Or parse with @strconv.parse!:

let parsed : Edn = try! @strconv.from_str("atom 1")

parsed.format?(use_inline=false).unwrap() // "atom 1"

TODO

  • tests
  • any ref

About

Cirru EDN example in Moonbit

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •