hexadecimal numbers

Aug 24, 2010 at 9:52 PM

How do I represent hexadecimal numbers in my language that can be bitwise OR'd like this:

0x01|0x08|0x1

Thanks!

Coordinator
Aug 25, 2010 at 5:17 PM

You should treat them as binary expressions, with "|" as binary operator. Look at ExpressionEvaluator grammar for an example