shithub: mc

Download patch

ref: 1750fba1a4fc55641cfd5a9ced3a33f012ff221f
parent: c5feb1c4f2a7b26239d074c1983b953df29ebff7
author: Ori Bernstein <[email protected]>
date: Mon Jan 20 08:03:39 EST 2014

Remove redundant endlns

    This was causing a S/R conflict in the grammar.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -306,9 +306,13 @@
             {$$ = $3; setns($3, $1->str);}
         ;
 
-implstmt: Timpl name type
+implstmt: Timpl name type {
+            $$ = NULL;
+            die("impl foo not done");
+            }
+        ;
 
-traitdef: Ttrait Tident generictype Tasn traitbody endlns Tendblk
+traitdef: Ttrait Tident generictype Tasn traitbody Tendblk
             {$$ = mktrait($1->line, mkname($2->line, $2->str), $5.nl, $5.nn, NULL, 0);}
         ;