Terminology. In his example é="eu"
, you would call é
of a identifier or name.
Responding. A Lua code is divided into: grammar and syntax. Syntax depends on grammar (as the sole lexical objective, on the Moon). In Lua grammar it is only possible to enter the character is within comments and strings strings, because their productions do not care about all characters (only delimiters, if applicable).
Otherwise, it is not possible to enter the character is and answered. Moon has nothing to do with C.
Lexical definition of a Lua name (based on ECMA-357 2º):
Name ::
- Namerepeat but no keyword
Namerepeat ::
- Namestart
- Namerepeat Namerepeat
Namestart ::
- Any Latin letter (A-Z or a-z) in ASCII
- _
Namepart ::
- Namestart
- Any type of ASCII
That is, an identifier consists of normal ASCII letters and/or _ (strokes) and optionally continues with digits. This is what the manual says.
Even though I have no knowledge in prism I say that variable names with accents is always a bad idea. There is no advantage because they are internal names and only visible to the programmer and it is always another reason for possible problems with encodings.
– Isac
Actually you want accented identifiers (bad idea, I agree with @Isac). Strings accents you’ve seen that work.
– bfavaretto
Do not use accents for variable names.
– gfleck