Question

What are the advantages and disadvantages of defining the keyword and symbol tables in the scanner...

What are the advantages and disadvantages of defining the keyword and symbol tables in the scanner or the parser?

Homework Answers

Answer #1

Ans. Advantages and disadvantages of defining symbol table in the scanner or parser:

Advantages:

1. The symbol table makes it easier to quickly search the identifier record and retrieve it.

2. The symbol table used to verify that used identifiers have been defined .

3. The symbol table is used to implement type checking by verifying expressions and assignments are semantically correct .

4. It is used to store the name of all entities in a structural form at one place.

Disadvantages:

1. It doesn't perform the processing of the assembler directives.

2. Hashing is complicated to implement in symbol table.

Advantages and disadvantages of defining keyword ìn scanner and parser:

keyword uses as a token, the pattern is a sequence of characters used in the scanner or parser.

Know the answer?
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
Similar Questions
what are the advantages and disadvantages of cumene hydroproxide process? what are the advantages and disadvantages...
what are the advantages and disadvantages of cumene hydroproxide process? what are the advantages and disadvantages of Acetone-Butanol-Ethanol fermentation process (ABE fermentation)?
What are the advantages and disadvantages to decentralization? What are the advantages and disadvantages of centralization?...
What are the advantages and disadvantages to decentralization? What are the advantages and disadvantages of centralization? Does one work in one environment better than the other? Please give well thought out responses
What are Advantages and disadvantages of the different non-deposit sources of funds? Post advantages and/or disadvantages...
What are Advantages and disadvantages of the different non-deposit sources of funds? Post advantages and/or disadvantages of 2 or more non-deposit sources of funds considering a Bank’s standpoint.
What are the advantages and disadvantages of monopoly
What are the advantages and disadvantages of monopoly
What are the advantages and disadvantages of grouting?
What are the advantages and disadvantages of grouting?
What are the advantages of debt financing? What are the disadvantages of debt financing? What are...
What are the advantages of debt financing? What are the disadvantages of debt financing? What are the advantages of equity financing? What are the disadvantages of equity financing?
what are the advantages and disadvantages of using credit?
what are the advantages and disadvantages of using credit?
what is the advantages and disadvantages of voluntary disclosure ??
what is the advantages and disadvantages of voluntary disclosure ??
What are disadvantages and advantages to the supergroup classification?
What are disadvantages and advantages to the supergroup classification?
What are advantages and disadvantages of credit derivatives?
What are advantages and disadvantages of credit derivatives?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT