mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
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:
parent
4f3a1f395c
commit
6966d20104
5 changed files with 1119 additions and 921 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue