answersLogoWhite

0


Best Answer

Automata is the science of state machines. State machines are (programming) entities with defined states and procedures (rules) for going from one state to another. An example might be an elevator. You define the various states, i.e. open, closed, which floor, which direction, what call buttons are pressed, etc. Then you define the rules, such as not changing directions when there is a call in the same direction. You would not define a rule for going from the first to the third floor, but you would define a rule for going from one floor to an adjacent floor. State machines are well suited to compiler design. If, for instance, you are parsing an expression, you would expect a binary operator to be surrounded by two operands. If you were parsing a while loop, you would expect the while keyword to be followed by an expression in parenthesis, followed by a statement. In automata, you design the basic machine, and provide the rules for going from one state to another. For a compiler, this makes it (relatively) easy to make changes to language syntax because you need only deal with rules, rather than thinking about wide scope procedural changes.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Uses of automata and compiler design?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Automata and compiler design solved papers?

how to correct fa


What is finite Automata-compiler design?

single possible output for a given input


The role of automata theory in compiler construction?

Lexical analysis is the first state of the Compiler design, in this state human typed programs are broken in to tokens and then those tokens are recognized through the Automata theory. For more details please refer the book, Modern Compiler designing in C


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


When was Principles of Compiler Design created?

Principles of Compiler Design was created in 1977.


How to design a finite automata to accept a palindrome no?

Design a pushdown automata for the same. Otherwise, you can use the following grammer : S -> aSb|bSa|<NULL>


What study in logic and automata?

Studying logic in the context of automata theory typically involves exploring formal languages, regular and context-free grammars, finite automata, and Turing machines. It aims to understand how logic can be used to model computation and language recognition, leading to applications in areas such as compiler design, artificial intelligence, and formal verification. This field provides fundamental tools for analyzing the computational capabilities of machines and systems.


Which is the best book for compiler design?

Ulman


What is booting in compiler design?

bootstrapping is a process of writing a compiler in the target programing language which it is intended to compile


Who was the first design the compiler?

No one knows and no one cares.


What is grammar in compiler design?

Is a specification for the syntax of a programming language.


Cs1352- Principles of compiler design book download?

yes