shithub: mc

Download patch

ref: a2c40f05af2001f5300b972402edc0ea22a2bb55
parent: 386289ecc114a0c012c71118ac45a8cf5dc52004
author: Ori Bernstein <[email protected]>
date: Wed Feb 19 06:09:55 EST 2014

Allow impl stmts in package def

    pkg foo =
        impl foo int
    ;;

    now works. You can also do a full implementation.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -283,7 +283,7 @@
         | tydef {puttype(file->file.exports, mkname($1.line, $1.name), $1.type);
              installucons(file->file.exports, $1.type);}
         | traitdef
-        /*| implstmt*/
+        | implstmt
         | visdef {die("Unimplemented visdef");}
         | /* empty */
         ;