lua-users home
lua-l archive

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


Hi everyone

I have been involved recently in embedding lua in settop products for debug 
and testing purposes.  Working in a hardware environment, there is the need 
to work with hex numbers.  I worked around it by using helper functions, but 
it is still sort of clumsy in the user had to enter 
a= hex("0xff00ff")  instead of a = 0xff 00

I read previous posting an it appears that the lex part of lua could be 
extended to do that, but it would mean that I would have modified version 
away from the baseline.

Any suggestions on the correct approach to handling hex numbers.

Glenn Edgar