Return-Path: <shearer@cs.bu.edu> X-Spam-HitLevel: X-Spam-DCC: EATSERVER: cs3.bu.edu 1166; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on cs3.bu.edu X-Spam-Level: X-Spam-Status: No, score=-2.6 required=10.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Pyzor: Received: from shearershot (c-24-60-255-210.hsd1.ma.comcast.net [24.60.255.210]) by cs3.bu.edu (8.13.6/8.13.6) with ESMTP id k9950Rgt005020; Mon, 9 Oct 2006 01:00:57 -0400 From: "Rui Shi" <shearer@cs.bu.edu> To: <michel@cs.bu.edu> Cc: <cs520@cs.bu.edu> Subject: RE: IMPORTANT: There're typos in parser.mly! Date: Mon, 9 Oct 2006 01:00:27 -0400 Message-ID: <000d01c6eb5f$e87db210$6400a8c0@csnt.bu.edu> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AcbrV+0lMEdXC74VQl69BU0NKn6KHQAB71iA In-Reply-To: <3464.71.232.158.11.1160366630.squirrel@cs-squirrelmail.bu.edu> X-Clamav-Status: No Status: RO X-Status: A Content-Length: 1695 X-UID: 16 X-Keywords:
Yes! Thank you for pointing this.
Please change the file as follows.
Rui
-----Original Message-----
From: michel@cs.bu.edu [mailto:michel@cs.bu.edu]
Sent: Monday, October 09, 2006 12:04 AM
To: cs520 Course Account
Subject: IMPORTANT: There're typos in parser.mly!
Importance: High
Hi Everybody,
There're typos in parser.mly! One must fix them to be able to run
correctly his or her evaluator when the input has one of the following
operators: >, >=, <, <=.
A diff is shown below.
(michel) prog2 % diff -u orig-parser.mly parser.mly
--- orig-parser.mly 2006-10-08 23:32:23.510916000 -0400
+++ parser.mly 2006-10-08 23:32:52.086812000 -0400
@@ -125,10 +125,10 @@
| term MOD term { TtmOp ("mod", [$1; $3]) }
| term EQ term { TtmOp ("=", [$1; $3]) }
| term NEQ term { TtmOp ("<>", [$1; $3]) }
- | term LT term { TtmOp (">", [$1; $3]) }
- | term LTEQ term { TtmOp (">=", [$1; $3]) }
- | term GT term { TtmOp ("<", [$1; $3]) }
- | term GTEQ term { TtmOp ("<=", [$1; $3]) }
+ | term LT term { TtmOp ("<", [$1; $3]) }
+ | term LTEQ term { TtmOp ("<=", [$1; $3]) }
+ | term GT term { TtmOp (">", [$1; $3]) }
+ | term GTEQ term { TtmOp (">=", [$1; $3]) }
| TILDE term { TtmOp ("~", [$2]) }
| PRINT term { TtmOp ("print", [$2]) }
I hope it helps you guys.
[ ]'s
Michel Machado
This archive was generated by hypermail 2b29 : Thu Dec 14 2006 - 16:31:59 EST