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:
authorMartin Baulig <martin@novell.com>2006-03-04 05:44:23 +0300
committerMartin Baulig <martin@novell.com>2006-03-04 05:44:23 +0300
commita29d8c7a59d0a213e44b9f7dff825f0d282b35e7 (patch)
tree1b7ff69da8872e3e67f5ae13b51498c594bd72f2 /mcs/jay
parent89fbc1fb612cc380b8d9324053f4fa2a14669d88 (diff)
2006-03-04 Martin Baulig <martin@ximian.com>
* skeleton.cs: Don't call yyerror if `yyErrorFlag == 0', so we can recover from errors with an `error' token. See gtest-248.cs for an example. svn path=/trunk/mcs/; revision=57573
Diffstat (limited to 'mcs/jay')
-rwxr-xr-xmcs/jay/ChangeLog6
-rw-r--r--mcs/jay/skeleton.cs2
2 files changed, 7 insertions, 1 deletions
diff --git a/mcs/jay/ChangeLog b/mcs/jay/ChangeLog
index 0bd97787de2..4405cdcb46c 100755
--- a/mcs/jay/ChangeLog
+++ b/mcs/jay/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-04 Martin Baulig <martin@ximian.com>
+
+ * skeleton.cs: Don't call yyerror if `yyErrorFlag == 0', so we can
+ recover from errors with an `error' token. See gtest-248.cs for
+ an example.
+
2006-01-06 Wade Berrier <wberrier@novell.com>
* Makefile: fix man path
diff --git a/mcs/jay/skeleton.cs b/mcs/jay/skeleton.cs
index 32cf8980452..1a04c33197f 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(String.Format ("syntax error, got token `{0}'", yyname (yyToken)), 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: