Error printing

now torquescript will print out a more modern error message with a pointer to the offending character.
Multi line error outputs to be added to this for context
This commit is contained in:
marauder2k7 2024-04-24 06:42:25 +01:00
parent 4f3a1f395c
commit 6966d20104
5 changed files with 1119 additions and 921 deletions

View file

@ -134,7 +134,7 @@ extern int CMDdebug;
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 82 "CMDgram.y"
#line 87 "CMDgram.y"
Token< char > c;
Token< int > i;
@ -160,9 +160,23 @@ typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE CMDlval;
extern YYLTYPE CMDlloc;
int CMDparse (void);