after parsing a string i am evaluating it...<br>string if t1 then t2 else t3<br>my code is<br>eval1 :: Term -> Maybe Term <br>eval1(If Tru t2 t3) = Just t2<br>eval1(If Fls t2 t3) = Just t3<br>eval1(If t1 t2 t3) = case eval t1 <br>
where eval1(If t1 t2 t3) = Just t1 <br> <br>eval :: Term -> Term<br>eval (IsZero Zero) = Tru <br>eval (Zero) = Zero<br>eval(Pred Zero) = Pred Zero<br><br><div class="gmail_quote">
On Mon, Oct 17, 2011 at 3:46 PM, Ivan Lazar Miljenovic <span dir="ltr"><<a href="mailto:ivan.miljenovic@gmail.com">ivan.miljenovic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 18 October 2011 08:43, kolli kolli <<a href="mailto:nammukolli04@gmail.com">nammukolli04@gmail.com</a>> wrote:<br>
> hey can anyone tell me what is parser error in parser??Plz help me out<br>
<br>
</div>It's when the parser can't parse what it's provided.... providing the<br>
code that caused the problem and the actual error message is required<br>
for a more detailed explanation.<br>
<font color="#888888"><br>
--<br>
Ivan Lazar Miljenovic<br>
<a href="mailto:Ivan.Miljenovic@gmail.com">Ivan.Miljenovic@gmail.com</a><br>
<a href="http://IvanMiljenovic.wordpress.com" target="_blank">IvanMiljenovic.wordpress.com</a><br>
</font></blockquote></div><br>