5 ms·
Yes, it can. http://www.livelogix.net/logix/intro.html http://www.livelogix.net/logix/intro.html Logix is built on Python and compiles down to Python bytecode
by inklesspen 20y ago
Yes, it can.
http://www.livelogix.net/logix/intro.html http://www.livelogix.net/logix/intro.html
Logix is built on Python and compiles down to Python bytecode, so you can use it with Python modules, but it has macros that I think are probably as powerful as Lisp's. It's meant for DSLs.
- mattculbreth 20y agoThanks for posting that. We're building a DSL for our users and this will get put on the stack of things to look into. We're Python hackers so it's a good find.
- BrandonM 20y agoI agree, thanks for the link. Unfortunately, I find the complete lack of syntax to make it even harder to read than Lisp macros (which I don't personally find difficult, but some do). Additionally, having to use numbers to indicate operator precedence seems a bit strange. Of course, Lisp solves this by always using parentheses, but I would be curious to see if there is a more elegant way of handling this than the numeric approach (or even the approach suggested in their proposed changes to Logix).
- raju 20y agoI agree with you. The lack of parentheses makes that hard to read. I am trying to get head wrapped around lisp (maybe thats it, I am _looking_ for the parentheses :)).
- brlewis 20y agoCould you give an example that's more powerful? From the 60-second intro you linked to, these look no more powerful than C's macros. http://en.wikipedia.org/wiki/C_preprocessor#Macro_definition_and_expansion http://en.wikipedia.org/wiki/C_preprocessor#Macro_definition_and_expansion
- inklesspen 20y agoI don't use it myself; I just had it in my bookmarks. I am also not very familiar with Lisp's macros. You may find something of interest in the more complete documentation. Sorry.