Find Jobs
Hire Freelancers

ANTLR parser -- 2

$10-30 USD

Closed
Posted almost 2 years ago

$10-30 USD

Paid on delivery
• You are required to use ANTLR to implement the SDD appearing below for a CFG that generates the language a*c*b*. S −→ ACB A −→ aA1 A −→ ε B −→ bB1 B −→ ε C −→ cC1 C −→ ε [login to view URL] = equals(A.n, B.n) ∗ equals(A.n, C.n) A.n = A1.n + 1 A.n = 0 B.n = B1.n + 1 B.n = 0 C.n = C1.n + 1 C.n = 0 • The start variable S has an attribute check whose value is 1 if the generated string is of the form ancnbn, and is 0 otherwise. • The only operations allowed on attributes are assignments, additions, multiplications, and equality checks; an equality check is an expression of the form equals(x, y) whose value is 1 if x is equal to y and is 0 otherwise. • Important Details: – Your implementation should be done within the template file which is uploaded to the CMS. – You are not allowed to change the already provided grammar, parser rule, or attribute names or types. – You are allowed to write as many helper lexer/parser rules within the same grammar file (if needed). – Public test cases have been provided on the CMS for you to test your implementation. – Please ensure that the public test cases run correctly without modification before coming to the lab to maintain a smooth evaluation process. 1 – A java file is provided in order to easily test your grammar with custom strings in addition to the public test cases. – Private test cases will be uploaded before your session and will have the same structure as the public test cases.
Project ID: 33794292

About the project

1 proposal
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $200 USD for this job
User Avatar
Hi, there. I am familiar with Java programming and ready to work with you. If you work with me, you will get success saving your money. Best regards. Kat.
$200 USD in 7 days
5.0 (1 review)
3.4
3.4

About the client

Flag of EGYPT
Cairo, Egypt
0.0
0
Member since May 28, 2022

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.