Skip to content

sum12/nomxit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nom[x]it

nom based parser for xit files

https://xit.jotaen.net/syntax-guide has more details about the syntax for these files.

nom is library for writing parsers using combinators. The xit files have simple enough format is relatively easy to parse. This lib crate export a parser module which exposes the various chunks encountered in the xit files eg :

There is some error reporting at some places using the VerboseError. However the coverage is weak and might not suitable to any real world application

TODO

  • unicode support
  • tags inside brackets
  • better error messages
  • returning raw matched text
  • merge contiguous ItemContent::Other
  • groups

Footnote

Will not be publishing this crate as it was an outcome of trying to play with nom library and thus is just a try project.

About

nom (rust crate) based parser for [x]it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages