Hello, Discovering Nim, this week, I enjoy !
Here a first try of a GUI DSL : https://gist.github.com/glurp/86f837372a31f6afcf04
Is this kind of project interest somebody?
I have already do this kind of dsl in ruby, so it should be easy (?) to replicate it in Nim:
sources: https://github.com/glurp/dsl-gtk
examples: https://rawgit.com/glurp/Ruiby/master/doc.html#code
Nice!
Aside from having a great way of hard coding GUIs, I can imagine this kind of DSL could be constructed by a GUI editor and stored in a file for an app to load too. Quite a nice way to store a GUI layout and pretty readable as is.
Very cool!
With declarative DSL, we can draw pretty HMI, but if dynamics are needed, we must learn low level api.
With internal DSL we can use host lang capacities (loop, io for read data and generate gui) and declarative advantage. and you can mixing several internal DSL, without difficulties...
Regular expression support for Nim. Deprecated. Consider using the nre or pegs modules instead.