Return-Path: <michel@cs.bu.edu> X-Spam-HitLevel: X-Spam-DCC: NIET: cs3.bu.edu 1080; env_From=1 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=-3.2 required=10.0 tests=ALL_TRUSTED,AWL,BAYES_00, NO_REAL_NAME,X_PRIORITY_HIGH autolearn=ham version=3.1.0 X-Spam-Pyzor: Received: from csa3.bu.edu (csa3 [128.197.12.5]) by cs3.bu.edu (8.13.6/8.13.6) with ESMTP id k9943oZV025471 for <cs520@cs.bu.edu>; Mon, 9 Oct 2006 00:03:50 -0400 Received: (from apache@localhost) by csa3.bu.edu (8.13.6/8.12.11/Submit) id k9943oFI031794; Mon, 9 Oct 2006 00:03:50 -0400 X-Authentication-Warning: csa3.bu.edu: apache set sender to michel@cs.bu.edu using -f Received: from 71.232.158.11 (SquirrelMail authenticated user michel) by cs-squirrelmail.bu.edu with HTTP; Mon, 9 Oct 2006 00:03:50 -0400 (EDT) Message-ID: <3464.71.232.158.11.1160366630.squirrel@cs-squirrelmail.bu.edu> Date: Mon, 9 Oct 2006 00:03:50 -0400 (EDT) Subject: IMPORTANT: There're typos in parser.mly! From: michel@cs.bu.edu To: "cs520 Course Account" <cs520@cs.bu.edu> User-Agent: SquirrelMail/1.4.6-4.fc2.1.legacy Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 1 (Highest) Importance: High X-Clamav-Status: No Status: RO Content-Length: 1408 X-UID: 15 X-Keywords: NonJunk
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