[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Making custom DSLs starting with "!" and "@"
- From: Abhijit Nandy <abhijit.nandy@...>
- Date: Thu, 8 Nov 2018 16:10:47 +0530
I want to support some custom syntax like the following in a Lua console I have implemented:
The exclamation mark and "@" are not valid Lua syntax so currently I detect them in the typed string and replace with valid Lua code - macro pre-processing.
But is there a way to make it valid given the flexibility of Lua to make DSLs.