[svn] r6036: nemerle/trunk: boot/Nemerle.Compiler.dll
boot/Nemerle.Macros.dll boot/Nemerle.dll boot/ncc.ex...
malekith
svnadmin at nemerle.org
Thu Dec 22 17:03:40 CET 2005
Log:
Update boot so it compiles. Update sources in macrolib.n to use 'in' as operator.
Author: malekith
Date: Thu Dec 22 17:02:58 2005
New Revision: 6036
Modified:
nemerle/trunk/boot/Nemerle.Compiler.dll
nemerle/trunk/boot/Nemerle.Macros.dll
nemerle/trunk/boot/Nemerle.dll
nemerle/trunk/boot/ncc.exe
nemerle/trunk/ncc/testsuite/positive/macrolib.n
Modified: nemerle/trunk/boot/Nemerle.Compiler.dll
==============================================================================
Binary files. No diff available.
Modified: nemerle/trunk/boot/Nemerle.Macros.dll
==============================================================================
Binary files. No diff available.
Modified: nemerle/trunk/boot/Nemerle.dll
==============================================================================
Binary files. No diff available.
Modified: nemerle/trunk/boot/ncc.exe
==============================================================================
Binary files. No diff available.
Modified: nemerle/trunk/ncc/testsuite/positive/macrolib.n
==============================================================================
--- nemerle/trunk/ncc/testsuite/positive/macrolib.n (original)
+++ nemerle/trunk/ncc/testsuite/positive/macrolib.n Thu Dec 22 17:02:58 2005
@@ -26,9 +26,14 @@
<[ BlahBle () ]>
}
-macro forp (i, n : int, m : int, body)
-syntax ("forpermutation", "(", i, "in", n, "to", m, ")", body)
+macro forp (i_in_n, m : int, body)
+syntax ("forpermutation", "(", i_in_n, "to", m, ")", body)
{
+ def (i, n) =
+ match (i_in_n) {
+ | <[ $i in $(n : int) ]> => (i, n)
+ | _ => Message.FatalError ("syntax error")
+ }
def a = array (m - n + 1);
for (mutable j = 0; j < m - n + 1; j = j + 1)
a[j] = j + n;
More information about the svn
mailing list