The latest version of s-cargot-letbind is 0.2.5.0-0.
s-cargot-letbind
Version 0.2.2.0 revision 0 uploaded by KevinQuick.
Package meta
- Synopsis
- Enables let-binding and let-expansion for s-cargot defined S-expressions.
- Description
This module allows let bindings to be introduced into the S-Expression syntax.
For example, instead of:
(concat (if (enabled x) (+ (width x) (width y)) (width y)) " meters")
this can be re-written with let bindings:
(let ((wy (width y)) (wboth (+ (width x) wy)) (wide (if (enabled x) wboth wy)) ) (concat wide " meters"))
As S-expressions grow larger, let-binding can help readability for those expressions. This module provides the discoverLetBindings function that will convert an S-expression into one containing let-bound variables, and the inverse function letExpand which will expand let-bound variables back into the expression.
- Author
- Kevin Quick
- Bug reports
- n/a
- Category
- Data
- Copyright
- 2018 Kevin Quick
- Homepage
- https://github.com/GaloisInc/s-cargot-letbind
- Maintainer
- kquick@galois.com
- Package URL
- n/a
- Stability
- n/a