From a714890a2b899f1363bc984047dfcdccad0e3617 Mon Sep 17 00:00:00 2001 From: maciejlach Date: Mon, 29 Sep 2014 21:14:04 +0200 Subject: [PATCH] Redesigned lambdas and projections handling Resolves #5 --- CHANGELOG.txt | 4 +- qSharp/qSharp.csproj | 3 + qSharp/src/QFunction.cs | 65 ++++++++++++++++++ qSharp/src/QLambda.cs | 34 ++++----- qSharp/src/QProjection.cs | 99 +++++++++++++++++++++++++++ qSharp/src/QReader.cs | 82 +++++++++++++++------- qSharp/src/QType.cs | 18 ++++- qSharp/src/QWriter.cs | 30 ++++---- qSharp/src/Utils.cs | 2 +- qSharp/test/QExpression.cs | 4 +- qSharp/test/QExpressionsFunctions.out | 22 ++++++ qSharp/test/QReaderTest.cs | 79 +++++++++++++++++++++ 12 files changed, 372 insertions(+), 70 deletions(-) create mode 100644 qSharp/src/QFunction.cs create mode 100644 qSharp/src/QProjection.cs create mode 100644 qSharp/test/QExpressionsFunctions.out diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 619f14e..428e5d9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,8 +1,8 @@ ------------------------------------------------------------------------------ - qSharp 2.0.7 [TBA] + qSharp 2.1.0 [2014.10.01] ------------------------------------------------------------------------------ - - Fix: validate lambda expression upon construction + - Redesigned lambdas and projections handling ------------------------------------------------------------------------------ qSharp 2.0.6 [2014.09.11] diff --git a/qSharp/qSharp.csproj b/qSharp/qSharp.csproj index ef0aa57..470d6a1 100644 --- a/qSharp/qSharp.csproj +++ b/qSharp/qSharp.csproj @@ -59,6 +59,8 @@ + + @@ -98,6 +100,7 @@ +