From 90e3f306b5813ff66f8249ba243a8a4220c915fe Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 16 Mar 2016 11:23:19 +0100 Subject: [PATCH] small fix --- deliverables/p1/p1.tex | 1 + examples/example.spl | 2 +- spl.prj | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/deliverables/p1/p1.tex b/deliverables/p1/p1.tex index 67a14b0..cdd46f5 100644 --- a/deliverables/p1/p1.tex +++ b/deliverables/p1/p1.tex @@ -96,6 +96,7 @@ eof :: Parser a Void \begin{frame}[fragile] \frametitle{Two-phase design} \framesubtitle{Parsing} + Read from stdin, write to stdout\\ Added some handy primitives \begin{lstlisting} parseBlock :: Parser Token [Stmt] diff --git a/examples/example.spl b/examples/example.spl index b4efb27..6cebe90 100644 --- a/examples/example.spl +++ b/examples/example.spl @@ -84,7 +84,7 @@ append(l1, l2) :: [t] [t] -> [t] { //square the odd numbers in a list and remove the even members squareOddNumbers(list) :: [Int] -> [Int] { - while(!isEmpty (list) && list.hd % 2==0){ + while(!isEmpty (list) && list.hd % 2=0){ list=list.tl; } if(!isEmpty(list)){ diff --git a/spl.prj b/spl.prj index b0e9413..16f0a01 100644 --- a/spl.prj +++ b/spl.prj @@ -112,6 +112,20 @@ OtherModules ReadableABC: False ReuseUniqueNodes: True Fusion: False + Module + Name: _SystemDynamic + Dir: {Application}/lib/Dynamics + Compiler + NeverMemoryProfile: False + NeverTimeProfile: False + StrictnessAnalysis: True + ListTypes: StrictExportTypes + ListAttributes: True + Warnings: True + Verbose: True + ReadableABC: False + ReuseUniqueNodes: True + Fusion: False Module Name: GenEq Dir: {Application}/lib/Generics @@ -618,7 +632,7 @@ OtherModules Fusion: False Module Name: System.OS - Dir: {Application}/lib/clean-platform/OS-Mac + Dir: {Application}/lib/clean-platform/OS-Linux-64 Compiler NeverMemoryProfile: False NeverTimeProfile: False -- 2.20.1