mirror of
https://github.com/ksherlock/mpw.git
synced 2025-02-16 12:30:53 +00:00
solaris
This commit is contained in:
parent
dd1679624c
commit
ea4944551c
@ -115,7 +115,10 @@ namespace {
|
||||
machine lexer;
|
||||
|
||||
action addx {
|
||||
value = (value << 4) + digittoint(fc);
|
||||
int x = fc;
|
||||
if (x >= '0' && x <= '9') x = x -'0';
|
||||
else x = (x | 0x20) - 'a' + 10;
|
||||
value = (value << 4) + x;
|
||||
}
|
||||
|
||||
ws = [ \t];
|
||||
|
Loading…
x
Reference in New Issue
Block a user