[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Enterring Hex Number
- From: glenn-edgar@...
- Date: Sat, 2 Jul 2005 17:42:05 -0700
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