Generate parser error messages (#4836)

Support parser error messages generation in tools/gen-strings.py.

JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi repasics@inf.u-szeged.hu
This commit is contained in:
Csaba Repasi
2021-11-26 10:26:46 +01:00
committed by GitHub
parent 271d9b2463
commit 841e21a970
10 changed files with 567 additions and 716 deletions
+3 -2
View File
@@ -25,6 +25,7 @@
#include "js-parser-limits.h"
#include "js-parser.h"
#include "js-scanner.h"
#include "parser-errors.h"
/** \addtogroup parser Parser
* @{
@@ -533,7 +534,7 @@ typedef struct parser_saved_context_t
typedef struct
{
PARSER_TRY_CONTEXT (try_buffer); /**< try_buffer */
parser_error_t error; /**< error code */
parser_error_msg_t error; /**< error code */
/** Union for rarely used members. */
union
{
@@ -923,7 +924,7 @@ uint16_t parser_check_anonymous_function_declaration (parser_context_t *context_
/* Error management. */
void parser_raise_error (parser_context_t *context_p, parser_error_t error);
void parser_raise_error (parser_context_t *context_p, parser_error_msg_t error);
/* Debug functions. */