[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C API to check if string is valid varible name
- From: Tomas Mudrunka <mudrunka@...>
- Date: Fri, 24 Mar 2023 14:21:08 +0100
Dne 2023-03-24 12:57, Luiz Henrique de Figueiredo napsal:
Is there some C API to check wether given string is a valid
No. But see the code for "identifier or reserved word" in llex:
It would be really beneficial in some cases.
I have lua embedded in system where users can define table of variables
and then write expressions to process them. However i think it would be
reasonable to have some sanity checks in place, so i don't have to
explain why formulas using variable called "TIME-MAX" are not working
:-) and stuff like that...
Tomáš Mudruňka - SPOJE.NET s.r.o.