Find Jobs
Hire Freelancers

Compilation - parser

$30-250 USD

已取消
已发布将近 5 年前

$30-250 USD

货到付款
Given development of a lexical analyzer for a language that is described by some grammar , the goal of the task is to develop parser (syntax analyzer) for this language. TASKS: Before coding 1. Eliminate left recursion and common left prefixes in the given grammar. 2. For the obtained grammar, perform calculation of attributes Nullable, First and Follow for each of the grammar's variables. This information is needed for: - Writing code of parser's functions - Implementation of recovery from syntax errors in these functions. Coding 3. Implement service functions: next_token() back_token() match() 4. Implement parser that performs Recursive Descent syntax analysis. - All functions that implement the parser (one function for every variable in the grammar) have to be placed in a separate file - Activation of parser: done in function main in the file with FLEX definitions 5. Error handling: - Each time the parser gets an unexpected token, it should send an appropriate error message, saying: - what was the expected token - what is the actual token - in which line the error was found (so that the user can easily localize the place in input where the error occurs). - In addition, parser should perform a recovery and continue syntax analysis. Implement the recovery policy discussed in the course. 6. Output of the parser is a report that contains: - Sequence of derivation rules in G used during syntax analysis of the input. Each used derivation rule is reported in a readable form, exactly as it appears in the grammar. - Error messages. All outputs produced during the execution should be recorded in an output file.
项目 ID: 19749887

关于此项目

1条提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价$100 USD来参与此工作竞标
用户头像
Hello. How are you today. I have read and understood this task. I have a lots of experience and very good knowledge of Data structures, Algorithms Design, Computer Architecture. And I'm expert in C/C++, Flex etc. I'm interested in this project. I'll wait for your good reply. Thanks.
$100 USD 在3天之内
5.0 (101条评论)
5.9
5.9

关于客户

ISRAEL的国旗
ISRAEL, Israel
5.0
9
付款方式已验证
会员自1月 8, 2018起

客户认证

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