Is metaprogramming feature set of Nelua more powerful than that of Common Lisp or Nim? #218
-
I have been seeking for a extensible programming language that would let me extend as I wish. Some say that Common Lisp has the most featurefull set of metaprogramming facilities, but has Nelua a equal or more complete metaprogramming feature set? Could I do all the metaprogramming things that Common Lisp let to do? Also, I know that metaprogramming of Nim is powerful. It has support for Generalized raw string literals, something similar of that of Julia language, called "string macros". Has Nelua something similar to generalized raw strings literals or "string macros"? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Seems not, but you can modify the AST using preprocessor.
Seems not, did you mean the old Lua syntax that allows you to omit parentheses? (e.g |
Beta Was this translation helpful? Give feedback.
-
I have a lot of things to do before starting with Nelua programming, I think I will need to learn Lua before. I have a question as you're one of the maintainers of this project. Is it possible to use non-C features like classes in the Nelua file when importing a C++/Objective-C file or header? I know that Nelua has no OOP support, but is it possible to write a macro to use the classes of a C++/Objective-C file in Nelua code? I found a lot of interesting things about that in Lua, but I don't know if it's possible to do the same with Nelua: http://lua-users.org/wiki/BindingCodeToLua ============== I will focus on making interoperability of Nelua with C-trio (C/C++/Objective-C) when I master Lua/Nelua. |
Beta Was this translation helpful? Give feedback.
-
You can learn Lua in 15 minutes, don't worry about this.
I'm not a maintainer, I'm just a user like yourself who happens to be extremely curious around programming languages.
This is something only @edubart can answer, I have no idea how to do this; only with C I know.
Nelua has support for OOP but it uses
Again, you can do pretty much anything you want with Nelua, as it uses Lua as its preprocessor behind the scenes; you can extend it in any way you like. If you read the entire https://nelua.io/overview/ along with https://github.com/edubart/nelua-lang/blob/master/examples/overview.nelua plus all the https://github.com/edubart/nelua-lang/blob/master/examples/ , then you have nothing to worry about. |
Beta Was this translation helpful? Give feedback.
Go in
examples
and see these files:Prefer to see
dsl2
example first and you should find all the answers you are looking for.