diff options
Diffstat (limited to 'vhdlparser/TokenMgrError.cc')
-rw-r--r-- | vhdlparser/TokenMgrError.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/vhdlparser/TokenMgrError.cc b/vhdlparser/TokenMgrError.cc index 6231196..0be1213 100644 --- a/vhdlparser/TokenMgrError.cc +++ b/vhdlparser/TokenMgrError.cc @@ -1,4 +1,4 @@ -/* Generated By:JavaCC: Do not edit this line. TokenMgrError.cc Version 6.2 */ +/* Generated By:JavaCC: Do not edit this line. TokenMgrError.cc Version 6.0 */ /* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ #include "TokenMgrError.h" @@ -61,8 +61,11 @@ namespace parser { errorCode = reason; } +} +} + // i < 16 - guaranteed -char hexChar(int i) { +static char hexChar(int i) { if (i < 10) { return i - '0'; } @@ -79,6 +82,9 @@ JAVACC_SIMPLE_STRING addUnicodeEscapes(JAVACC_STRING_TYPE str) { JAVACC_CHAR_TYPE ch = str[i]; switch (ch) { + case 0 : + retval += EMPTY[0]; + continue; case '\b': retval.append("\\b"); continue; @@ -112,7 +118,4 @@ JAVACC_SIMPLE_STRING addUnicodeEscapes(JAVACC_STRING_TYPE str) { } return retval; } - -} -} -/* JavaCC - OriginalChecksum=2fe11435e6701b2fca885354b08bfdf6 (do not edit this line) */ +/* JavaCC - OriginalChecksum=7f80e3c4eac120168f5e81d4ddb72e4b (do not edit this line) */ |