Here are a few resources:

The JSON module: 
[https://github.com/nim-lang/Nim/blob/master/lib/pure/json.nim#L150](https://github.com/nim-lang/Nim/blob/master/lib/pure/json.nim#L150)

The lexbase module: 
[https://nim-lang.org/docs/lexbase.html](https://nim-lang.org/docs/lexbase.html)

Spry-lang, a Smalltalk/Rebol like language written in Nim. It leverages Nim 
lexer and operates directly on Nim AST.

  * [https://github.com/gokr/spry](https://github.com/gokr/spry)
  * 
[http://goran.krampe.se/category/spry](http://goran.krampe.se/category/spry)/



PMunch also has a lot of parsers in his repo but I think binary parsers only: 
[https://github.com/PMunch?tab=repositories](https://github.com/PMunch?tab=repositories)

Basically Nim object variant (kind objects) are your best friends.

Reply via email to