lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Assignment in C++ like DSL
From
: Abhijit Nandy <abhijit.nandy@
...
>
Date
: Thu, 24 Dec 2015 12:51:26 +0530
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
Follow-Ups
:
Re: Assignment in C++ like DSL
,
Ross Bencina
Prev by Date:
Re: Making the use of luapgsql more "Lua-ish"
Next by Date:
Re: Assignment in C++ like DSL
Previous by thread:
Re: Making the use of luapgsql more "Lua-ish"
Next by thread:
Re: Assignment in C++ like DSL
Index(es):
Date
Thread