summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-12-02 16:52:41 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-12-02 16:52:41 +0000
commit68f686414a87a2aebab04bfb7f340e37ccad030b (patch)
tree663b77528fbe2a02cdf923bba640ded2b228981b /lang
parentUpdate japanized perl5 patch to 20000401. (diff)
Fix build with bison 1.75.
Reported by: bento
Notes
Notes: svn path=/head/; revision=71326
Diffstat (limited to 'lang')
-rw-r--r--lang/wxbasic/files/patch-wxbasic.y97
1 files changed, 97 insertions, 0 deletions
diff --git a/lang/wxbasic/files/patch-wxbasic.y b/lang/wxbasic/files/patch-wxbasic.y
new file mode 100644
index 000000000000..ba4dd117eddb
--- /dev/null
+++ b/lang/wxbasic/files/patch-wxbasic.y
@@ -0,0 +1,97 @@
+--- wxbasic.y.orig Mon Dec 2 11:47:30 2002
++++ wxbasic.y Mon Dec 2 11:52:08 2002
+@@ -378,7 +378,7 @@
+ { $$ = wOpNode( W_OP_CLOSE, NULL, NULL ); }
+
+ | W_TOKEN_CONST constList sep
+- { $$ = $2 }
++ { $$ = $2; }
+
+ | W_TOKEN_COMMON
+ { if (wCurrentScope != NULL) {
+@@ -397,7 +397,7 @@
+ $$ = wOpNode( W_OP_CONTINUE, NULL, NULL ); }
+
+ | W_TOKEN_DELETE expr sep
+- { $$ = wOpNode( W_OP_DELETE, $2, NULL ) }
++ { $$ = wOpNode( W_OP_DELETE, $2, NULL ); }
+
+ /* same as Dim Common */
+ | W_TOKEN_DIM W_TOKEN_COMMON
+@@ -486,7 +486,7 @@
+ wSymbolNode( W_OP_NOOP, $5, NULL, NULL ), $9 ); }
+
+ | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_VARIABLE_NAME W_TOKEN_IN error
+- { wExpected("an Array") };
++ { wExpected("an Array"); }
+
+
+ | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_UNDEFINED W_TOKEN_IN W_TOKEN_ARRAY_NAME
+@@ -498,16 +498,16 @@
+ wSymbolNode( W_OP_NOOP, $5, NULL, NULL ), $8 ); }
+
+ | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_UNDEFINED W_TOKEN_IN error
+- { wExpected("an Array") };
++ { wExpected("an Array"); }
+
+ | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_VARIABLE_NAME error
+- { wExpected("In") };
++ { wExpected("In"); }
+
+ | W_TOKEN_FOR W_TOKEN_EACH W_TOKEN_UNDEFINED error
+- { wExpected("In") };
++ { wExpected("In"); }
+
+ | W_TOKEN_FOR W_TOKEN_EACH error
+- { wExpected("a variable") };
++ { wExpected("a variable"); }
+
+ /* For <var> = <expr> To <expr> [step <expr>] ... next */
+ | W_TOKEN_FOR W_TOKEN_VARIABLE_NAME
+@@ -529,7 +529,7 @@
+ $$ = $4; }
+
+ | W_TOKEN_FOR error
+- { wExpected("Each or a variable") };
++ { wExpected("Each or a variable"); }
+
+
+ | W_TOKEN_DECLARE W_TOKEN_FUNCTION W_TOKEN_UNDEFINED
+@@ -1328,7 +1328,7 @@
+
+ printList:
+ ';' printList
+- { $$ = $2 }
++ { $$ = $2; }
+
+ | ',' printList
+ { $$ = wIntNode( W_OP_PRINT_VALUE, W_PRINT_TAB, NULL, $2 ); }
+@@ -1519,7 +1519,7 @@
+ { wIncrStack( wArgCountStack, 1 );
+ if ($1->stackPos != wPeekStack(wArgCountStack) ) {
+ wFatal( W_SYNTAX, "Variable %s does not match declaration", $1->name);
+- } };
++ } }
+
+ | W_TOKEN_VARIABLE_NAME ',' optSep
+ { wIncrStack( wArgCountStack, 1 );
+@@ -1558,7 +1558,7 @@
+ | '.' '.' '.' ')'
+ { if (wCurrentScope->optArgs != W_MAX_OPT_ARGS) {
+ wFatal( W_SYNTAX, "... does not match declaration" );
+- } };
++ } }
+ | error
+ { wFatal( W_SYNTAX, "Parm list does not match declaration" ); }
+
+@@ -1617,8 +1617,8 @@
+
+ fileHandle
+ : '#' expr
+- { $$ = $2 }
++ { $$ = $2; }
+ | expr
+- { $$ = $1 }
++ { $$ = $1; }
+ ;
+