Hi,
I have a DSL to parse C++ like syntax here:
https://github.com/synth2014/DSLsBasedOnLua/blob/master/cpp/cpp.lua
It can parse syntax like:
class 'A': public 'B'
{
public:
int 'm',
int 'n'(10),
foo = function()
print("function foo called!")
end,
private:
str 's' 'hi',
int 'i' '3',
bar = function()
print("function bar called!")
end,
}
I would love to be able to say:
int 'm' = 3
But putting the '=' breaks the syntax. Is there any way to enable this kind of syntax?
Thanks,
Abhijit