V
V
Vasily Melnikov2016-12-29 21:20:48
Lua
Vasily Melnikov, 2016-12-29 21:20:48

What symbols are not used in lua?

Until recently, I used VBS to do some custom calculations. The calculations were performed on some named data, and accordingly the BASIC code for the user looked like

if {Уровень} = 10 then
{C} = {A} + {B}
end if

Before running the script, a simple parsing was launched in which everything that was enclosed in curly braces was replaced by dispatch calls to objects behind which the data of the main program was ultimately hidden.
While I made a trial implementation for Lua, which uses functions like getValue("Name") and setValue(" Name", value)
As a result, I plan to do the same as in the previous version, but {} cannot be used, what characters are best suited for such a purpose so that there is no coincidence with language constructs?
Is there any way to do it in a more beautiful way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)

можете использовать любые. Просто используйте какой-нибудь готовый темплейтер...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question