Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

FOR LOGICPRO: i need help with this assignment that's due at…

Customer Question
FOR LOGICPRO:hello i need help...
FOR LOGICPRO:hello i need help with this assignment that's due at the end of the day:
Purpose
This project is intended to give you experience in using a parser generator (YACC), writing a syntax specification (grammar) for a language, performing parsing and semantic analysis (attribute grammar).
Summary
Your task is to write an interpreter for a simple program whose programming language, reCALC, contains basic language constructs such as variables, assignment statements, simple control flow, and output. The interpreter will be written using a compiler generator (YACC). The program should call the lexical analyzer (Lex) for the next token, parse the token stream, report grammatical errors, perform static and dynamic semantic checks.
You will need to construct a YACC specification file recalc.y which will be used in conjuction with the provided lexer.l to create your interpreter. The executable can be built (and tested with 0.test, for example) in the following way:
$ yacc -d recalc.y
$ flex -I lexer.l
$ gcc lex.yy.c y.tab.c -lfl
$ ./a.out < tests/0.test
The included proj2.tar contains the needed lexer.l file, a sample executable, and a directory of test files. Do not change the lexer.l file to suit your needs – it will be used as is to test your recalc.y file.
Syntax Specification
The syntax of the reCALC language is described by a set of syntax diagrams in syntax.pdf. A syntax diagram is a directed graph with one entry and one exit. Each path through the graph defines an allowable sequence of symbols. For example, the structure of a valid reCALC program is defined by the first syntax diagram. The occurrence of the name of another diagram such as declaration and compound statement indicate that any sequence of symbols defined by the other diagram may occur at that point. The following is an example valid reCALC program, called ex.recalc.program xyz is
begin
int val;
string farewell;
val = 10;
farewell = “Farewell”;
print “The number “ . val . “ is held in val.”;
print farewell . “!”;
endwhich yields the following result when run through the reCALC interpreter:$ ./a.out < ex.recalc
The number 10 is held in val.
Farewell!
Submitted: 3 months ago.Category: Homework
Show More
Show Less
Ask Your Own Homework Question
Answered in 2 hours by:
4/2/2018
Tutor: LogicPro, Engineer replied 3 months ago
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13,497
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified

Hi,

Welcome

Thank you for asking me. Hope you are doing well.

My apologies, I am not familiar with reCALC and opting out for other Professionals to answer. Please wait. You will be notified by email as soon as any Professional joins you.

I greatly appreciate the request and would be happy to help you with your other questions though.

Thank you for your patience.

Ask Your Own Homework Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask Scott Your Own Question
Scott
Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3,040
3,040 Satisfied Customers
Experience: MIT Graduate (Math, Programming, Science, and Music)

Scott is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

13,497 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,698 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,190 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
The second project involves completing and extending the C++
The second project involves completing and extending the C++ program that evaluates statements of an expression language contained in the module 3 case study. The statements of that expression languag… read more
George Sibiya
George Sibiya
PhD
309 satisfied customers
The first project involves writing the lexical analyzer with
The first project involves writing the lexical analyzer with lexical error checking, and the compilation listing generator for the compiler. The specification for the lexical structure of the language… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,130 satisfied customers
Need help on building a lex compiler in Linux. It uses
Need help on building a lex compiler in Linux. It uses mostly C++ code. This is the project and I have some done already. The first project involves writing the lexical analyzer with lexical error che… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
Instructions A GUI definition language defined in an input
Attachment: 2014-02-17_200538_project1_test_examples.doc Attachment: 2014-02-17_201315_project_1.docx Instructions A GUI definition language defined in an input file and generates the GUI that it defi… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
The second project involves completing and extending the C++
The second project involves completing and extending the C++ program that evaluates statements of an expression language contained in the module 3 case study. The statements of that expression languag… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
Complete a program that parse, using recursive descent, a GUI
Complete a program that parse, using recursive descent, a GUI definition language defined in an input file and generates the GUI that it defines. The grammar for this language is defined below: gui ::… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
The Text class must contain a constructor that is supplied
CMSC 405 - Computer Graphics Programming Project 1 The first project involves adding several classes to a skeleton project that you will be provided, which reads in a scene definition file that define… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
What it Looks Like to the UserThe program will loop, asking
Understand the Application What it Looks Like to the User The program will loop, asking the user for a bet amount from 0 to 100 (assume dollars, you can use ints or longs). If the user types a 0 that … read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
Look up a roulette wheel diagram. The following sets are defined: •A
Look up a roulette wheel diagram. The following sets are defined: •A = the set of red numbers •B = the set of black numbers •C = the set of green numbers •D = the set of even numbers •E = the set of o… read more
Stevewh
Stevewh
Teacher
Bachelor's Degree
612 satisfied customers
The first programming project involves completing a program
Attachment: 2013-04-08_005057_project1.docx The first programming project involves completing a program that parse, using recursive descent, a GUI definition language defined in an input file and gene… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
The second project involves completing and modifying the C++
The second project involves completing and modifying the C++ program that evaluates statements of an expression language contained in the module 3 case study. The statements of that expression languag… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
The program reads in the arithmetic expression and encodes
The program reads in the arithmetic expression and encodes the expression as a binary tree. After the expression has been read in, the variable assignments are read in and the variables and their valu… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
for "bizhelp" 1.Which among the following would not be
for "bizhelp" 1.Which among the following would not be described in the systems analysis report? 1. The current information system 2. The requirements for a new system 3. The development schedule 4. T… read more
Bizhelp
Bizhelp
CPA
Bachelor's Degree
1,887 satisfied customers
High quality standardised documentation offers many advantages. a.
High quality standardised documentation offers many advantages. a. Suggest FIVE advantages in having standards for documentation. b. Name FIVE standard items of documentation (specific examples of cha… read more
Kathy
Kathy
Master\u0027s Degree
201 satisfied customers
Please I need help with this paper! I have all the details.
Please I need help with this paper! Cognitive Pyschology I have all the details. I need it today before 11:30 pm pacific time http://www.mediafire.com/?mzyajviuzty. Please let me know if you can help … read more
manas11
manas11
Bachelor\u0027s Degree
6 satisfied customers
have a paper to write on langage froe the norton psychology
have a paper to write on langage froe the norton psychology reader and i dont understand what they are trying to get accros. can someone help… read more
Kali Johns
Kali Johns
Life Coach & Educational Consultant
Current PhD student
10 satisfied customers
1. A shared symbolic system of communication is known
1. A shared symbolic system of communication is known as a. a linguistic universal b. a language c. a verbal learning theory d. diagnostics 2. The rules that govern the combination of morphemes into p… read more
M. Castillo
M. Castillo
AA
Bachelor\u0027s Degree
49 satisfied customers
1. When first introduced to someone, Marcel effectively reme ...
1. When first introduced to someone, Marcel effectively remembers the person's name by repeating it to himself several times Marcel makes use of a strategy called chunking. automatic processing. the m… read more
Selah R, M.S. LPC
Selah R, M.S. LPC
Licensed Professional Counselor
Master\u0027s Degree
519 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x