Find Jobs
Hire Freelancers

MINIJAVA Implementation

$30-5000 USD

已取消
已发布大约 15 年前

$30-5000 USD

货到付款
You will extend the MiniJava implementation, including the typechecker, with two new expressions and a new statement. Copy the MiniJava implementation directory (chap5 folder) to where you want to work. Your implementation should correctly typecheck the new expressions and statement. The process is similar for statements where, instead of modifying TypeCheckExpVisitor, you will have to modify TypeCheckVisitor. Please see attachment for further details. ## Deliverables Requirements: • A zipped version of your solution directory after removing all the .class files (just to save space). Alternatively, you can only include the files that were modified and added by your implementation. • A test file (MiniJava program) with all the new cases added to the language, including expressions and statements that should throw type errors. Point these expressions out (good and bad ones) by adding a comment. The typechecker will report the first type error and quit. You can test your program by only including one ill-typed expression/statement at a time and commenting out the rest (that’s what I will do with your file). Work to be done: You will extend the MiniJava implementation, including the typechecker, with two new ex- pressions and a new statement. Copy the MiniJava implementation directory (chap5 folder) to where you want to work. Files README in the various directories give a brief description of the structure of the implementation. Add the OR operator (OrExpression) to the MinJava implementation following the syntax below: 
 → || 2. Add the ?: (shortcut if-else) operator to MiniJava, where op1?op2:op3 returns op2 if op1 is true, and returns op3 if op1 is false. The syntax is: ’’?’’ ’’:’’ 3. Add a repeat-until statement to the MiniJava implemenation:

 → repeat until ( ) ; Your implementation should correctly typecheck the new expressions and statement. The process is similar for statements where, instead of modifying TypeCheckExpVisitor, you will have to modify TypeCheckVisitor. In a nutshell, you will have to: Modify the [login to view URL] file. • Add the classes representing the new expressions and statement to the syntaxtree directory. Note that this time you will also have to include an accept method to be used by the Type visitor. • Update the pretty-printer visitor by adding the new visit declarations to [login to view URL] and the new implementations of visit to the [login to view URL] file. • Update the default Type visitor by adding the new visit declarations to [login to view URL] and the new implementations of visit to the [login to view URL] file. • Implement the actual type checking of the new expressions and statement by adding the respective visit method to [login to view URL] (expressions) and [login to view URL] (statements). Please see attachment for all the relevant files. thanks. ## Platform Windows, Unix, Java,
项目 ID: 3785228

关于此项目

5提案
远程项目
活跃15 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价$153 USD来参与此工作竞价
用户头像
See private message.
$34 USD 在3天之内
5.0 (5条评论)
4.2
4.2
用户头像
See private message.
$136 USD 在3天之内
4.7 (8条评论)
3.8
3.8
用户头像
See private message.
$510 USD 在3天之内
0.0 (2条评论)
0.0
0.0
用户头像
See private message.
$12.75 USD 在3天之内
0.0 (1条评论)
0.0
0.0
用户头像
See private message.
$72.25 USD 在3天之内
0.0 (0条评论)
0.5
0.5

关于客户

UNITED KINGDOM的国旗
United Kingdom
5.0
10
会员自11月 18, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。