Improved parser scope errors.

Added the caret for indicating where the error is.
This commit is contained in:
2023-07-29 17:14:02 -04:00
parent b9064fba9d
commit 03df940085
5 changed files with 64 additions and 54 deletions

View File

@ -15,8 +15,8 @@ BraceSquare_Open, "["
BraceSquare_Close, "]"
Capture_Start, "("
Capture_End, ")"
Comment, "__comment__"
Char, "__char__"
Comment, "comemnt"
Char, "character"
Comma, ","
Decl_Class, "class"
Decl_GNU_Attribute, "__attribute__"
@ -32,7 +32,7 @@ Decl_Template, "template"
Decl_Typedef, "typedef"
Decl_Using, "using"
Decl_Union, "union"
Identifier, "__identifier__"
Identifier, "identifier"
Module_Import, "import"
Module_Export, "export"
Number, "number"
@ -62,7 +62,7 @@ Spec_ThreadLocal, "thread_local"
Spec_Volatile, "volatile"
Star, "*"
Statement_End, ";"
String, "__string__"
String, "string"
Type_Unsigned, "unsigned"
Type_Signed, "signed"
Type_Short, "short"

1 Invalid __invalid__
15 BraceSquare_Close ]
16 Capture_Start (
17 Capture_End )
18 Comment __comment__ comemnt
19 Char __char__ character
20 Comma ,
21 Decl_Class class
22 Decl_GNU_Attribute __attribute__
32 Decl_Typedef typedef
33 Decl_Using using
34 Decl_Union union
35 Identifier __identifier__ identifier
36 Module_Import import
37 Module_Export export
38 Number number
62 Spec_Volatile volatile
63 Star *
64 Statement_End ;
65 String __string__ string
66 Type_Unsigned unsigned
67 Type_Signed signed
68 Type_Short short