diff --git a/include/Defs.h b/include/Defs.h index abc1e46..31f64e2 100644 --- a/include/Defs.h +++ b/include/Defs.h @@ -42,6 +42,7 @@ enum TokenTypes { CMP_GTE, // => LI_INT, // Integer literal + LI_STR, // String literal LI_SEMIC, // ; LI_LBRAC, // { diff --git a/src/Pointers.c b/src/Pointers.c index e036095..ed067e4 100644 --- a/src/Pointers.c +++ b/src/Pointers.c @@ -41,11 +41,11 @@ int ParseOptionalPointer() { int Type; // TODO: THIS IS WRONG AND SHOULD NOT EXIST - // TY_CHAR is 22, RET_CHAR is 1. + // TY_CHAR is 25, RET_CHAR is 1. // Offset is 20. Rest are in order if(CurrentToken.type >= TY_CHAR && CurrentToken.type <= TY_VOID) { - Type = CurrentToken.type - 23; + Type = CurrentToken.type - 24; printf("\t\tConverting a %s token to a %s type.\n", TokenNames[CurrentToken.type], TypeNames[Type]); } else { DieDecimal("Illegal type for pointerisation", CurrentToken.type);