Question

What are the two parts of the fully developed Jack Compiler? What are the sub-parts for...

What are the two parts of the fully developed Jack Compiler? What are the sub-parts for one
of those parts? Describe each part/sub-part’s functionality.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The two parts of fully developed Jack compilers are

*Syntax analyzer

*Code generation

Syntax analyser

The main theme of syntax Analyzer is to read the jack programs and to understand in a syntactical structure which is according to the grammar jack janguage

At every step of parsing we have to identify the structure

It will be easily readable format

Without this part code generation won't be happen

Here xml out put is generated

Code generation

It is the second part of the jack compiler

Here code is generated According to requirement

Here the analyser output is taken and enhance the analyser into the high level full scale compiler

In implementation it deals with application interface for the transformation

Here few Techniques and tricks are used in code generation

Sub parts as mentioned one of the two parts

Sub parts of syntax Analyzer

*Jack analyser

*Jack tokenizer

*Jack compilation engine

*Jack Analyzer

Jack analyser is the part of the syntax analyzer in the jack compiler which deals with the source content and gives the output in the form of xml file

Where the soure file will be .jack file and result will be in the .xml file

*Jack tokenizer

Which is used for the removal of the white spaces from the inputs of jack and it is broken into the jack language tokens according to the grammar of jack

*Jack compilation engine

It gets the input from the jack tokenizer and makes parsed structure into output generated in form of file.

It uses compiler tools like YACC which means yet another compiler compiler

And LEX which is known as Lexical analysis

Add a comment
Know the answer?
Add Answer to:
What are the two parts of the fully developed Jack Compiler? What are the sub-parts for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT