MattAlp / littlesugar

Nim macros that might help writing simpler and safer code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

littlesugar

This is Nim macros that might help writing simpler and safer code.

document

List of modules

Creates a while statement with named blocks so that you can easily leave or continue the while loop in double (or deeper) loop.

Creates a new scope with aliases so that you can use them safely.

It provides procedures work like cast in Nim, but slightly safer.

Recursively replaces all NimNode subtrees that matches given NimNode tree with specified NimNode tree.

Expand specified macro or template before expanding other macros or templates.

Assign an anonymous procedure to a procedual type variable easily.

About

Nim macros that might help writing simpler and safer code.

License:MIT License


Languages

Language:Nim 100.0%