lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Lua would require some minor changes only, which if I am not mistaken won't break any past code and should be relatively easy to implement, in order to support natural language texts as valid script code.

May someone help me to provide proof of the concept explaining where and how to modify Lua C-code in order to:

1.    allow ASCII values 0x02 (Start of Text) and 0x03 (End of Text) to be used in script code and interpreted respectively as `[[` and `]]`

2.    allow function calls by specifying the function name only (without using braces and without the need of passing a parameter)

3.    extend [_a-zA-z0-9] characters allowed in symbol names with ASCII value 0x1F (Unit Separator) and `-` which will be treated like [0-9] not allowed as first symbol name characters

4.    allow usage of unnamed strings (i.e. string literals which can be specified anywhere in code without the need of assigning them to a symbol) ignoring them like comments

5.    allow next to `;` also usage of `,` , `.` and `:`

?