answersLogoWhite

0


Best Answer

a top down parser generates a leftmost derivation

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A top down parser generates
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is lex tool?

Lex is a parser generator tool. Its basically a program that generates the lexers.


How do you generate a parse tree from an expression using C program?

c code for top down parser


What is the difference between generating capital investment ideas in a top-down vs. a bottom-up capital investment?

The top-down process generates ideas of a broader, more strategic nature, whereas the bottom-up process generates ideas of a more project-specific nature.


What is a parser?

Parser is a portion of the computer progam which carry out parsing process.


When was Pdf-parser created?

Pdf-parser was created on 2008-05-02.


What is the role of parser in compiler design?

· In the compiler model, the parser obtains a string of tokens from the lexical analyser, and verifies that the string can be generated by the grammar for the source language.· The parser returns any syntax error for the source language.· There are three general types' parsers for grammars.· Universal parsing methods such as the Cocke-Younger-Kasami algorithm andEarley's algorithm can parse any grammar. These methods are too inefficient to use in production compilers.· The methods commonly used in compilers are classified as either top-down parsing or bottom-up parsing.· Top-down parsers build parse trees from the top (root) to the bottom (leaves).· Bottom-up parsers build parse trees from the leaves and work up to the root.· In both case input to the parser is scanned from left to right, one symbol at a time.· The output of the parser is some representation of the parse tree for the stream of tokens.· There are number of tasks that might be conducted during parsing. Such as;o Collecting information about various tokens into the symbol table.o Performing type checking and other kinds of semantic analysis.o Generating intermediate code.


What is the role of a parser in compiler design?

· In the compiler model, the parser obtains a string of tokens from the lexical analyser, and verifies that the string can be generated by the grammar for the source language.· The parser returns any syntax error for the source language.· There are three general types' parsers for grammars.· Universal parsing methods such as the Cocke-Younger-Kasami algorithm andEarley's algorithm can parse any grammar. These methods are too inefficient to use in production compilers.· The methods commonly used in compilers are classified as either top-down parsing or bottom-up parsing.· Top-down parsers build parse trees from the top (root) to the bottom (leaves).· Bottom-up parsers build parse trees from the leaves and work up to the root.· In both case input to the parser is scanned from left to right, one symbol at a time.· The output of the parser is some representation of the parse tree for the stream of tokens.· There are number of tasks that might be conducted during parsing. Such as;o Collecting information about various tokens into the symbol table.o Performing type checking and other kinds of semantic analysis.o Generating intermediate code.


The energy of air on the top and bottom of a wing generates?

jhlk


Why is XML Parser used in modern browsers?

XML Parser is used to decipher XML codes. Without it, the codes cannot be understood. Web browsers, such as Mozilla Firefox and Google Chrome supply the user with this XML Parser.


Do you need MSXML parser?

yes i need


What checks for structural errors of a language?

parser


What is an email parser?

An email parser is a technology that allows you to integrate your campaign with these and other services so that when a transaction is made with that service, a subscriber can be added to your campaign.