|
|
|
This is the output of svn diff for grammar files in src/Base.Lang.Parser directory ; just did svn diff *.g in that directory.
char(+ve Int) ( things like char(0x41) and char(65) work as well as char('A') ) works fine with this patch. isn't the patch ok for inclusion?
(after adding some testcases maybe) Yes, after adding some test cases and refactoring ParseIntegerLiteralExpression so that:
e=ParseIntegerLiteralExpression(i, val, false); Can be replaced by something like: int value = ParseInteger(i, val, false); |
|||||||||||||||||||||||||||||||||||||||||||||||||||
C#:
char a = (char) 0x41;
char a = (char) 65;
So, you could write in your boo code cast(char, 65) and cast(char, 0x41). But yes, char(integral) and char(hex) would be nicer.