Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/jay
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2004-02-07 19:15:42 +0300
committerMiguel de Icaza <miguel@gnome.org>2004-02-07 19:15:42 +0300
commit5e0910d9b36c7a21194046fca26cf2db9ed4af13 (patch)
tree26a98ba22729383657eb7e03d9bd60912128378d /mcs/jay
parent7e63b37a8c65f63e20fda46616a44491319aaa6c (diff)
2004-02-07 Miguel de Icaza <miguel@ximian.com>
* skeleton.cs: Report the token that we errored on; Helps find parser errors. svn path=/trunk/mcs/; revision=22856
Diffstat (limited to 'mcs/jay')
-rwxr-xr-xmcs/jay/ChangeLog5
-rw-r--r--mcs/jay/skeleton.cs2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/jay/ChangeLog b/mcs/jay/ChangeLog
index dc1dbcf7217..db057fad41f 100755
--- a/mcs/jay/ChangeLog
+++ b/mcs/jay/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-07 Miguel de Icaza <miguel@ximian.com>
+
+ * skeleton.cs: Report the token that we errored on; Helps
+ find parser errors.
+
2003-12-16 Atsushi Enomoto <atsushi@ximian.com>
* skelton.cs : Added ErrorOutput text writer.
diff --git a/mcs/jay/skeleton.cs b/mcs/jay/skeleton.cs
index d999dae6b4b..eafd7e9a69a 100644
--- a/mcs/jay/skeleton.cs
+++ b/mcs/jay/skeleton.cs
@@ -176,7 +176,7 @@ t debug.shift(yyState, yyTable[yyN], yyErrorFlag-1);
. switch (yyErrorFlag) {
.
. case 0:
-. yyerror("syntax error", yyExpecting(yyState));
+. yyerror(String.Format ("syntax error, got token `{0}'", yyname (yyToken)), yyExpecting(yyState));
t if (debug != null) debug.error("syntax error");
. goto case 1;
. case 1: case 2: