Posted inCompiler Design WRITING A GRAMMAR Posted by admin July 20, 2021 AΒ grammarΒ consists of a number ofΒ productions. Each production has an abstract symbol called aΒ nonterminalΒ as itsΒ left-hand side,…
Posted inCompiler Design Context-Free GRAMMARS Posted by admin July 20, 2021 A Context-Free Grammar is a quadruple that consists ofΒ terminals,non-terminals,Β start symbolΒ andΒ productions. Β Β Terminals:Β These are theΒ basic symbols from…
Posted inCompiler Design Error Handling in Compiler Design Posted by admin July 20, 2021 The tasks of theΒ Error HandlingΒ process are to detect each error, report it to the user,…
Posted inCompiler Design Types of Parsing Posted by admin July 20, 2021 Syntax analyzers follow production rules defined by means of context-free grammar. The way the production…
Posted inCompiler Design THE ROLE OF PARSER Posted by admin July 20, 2021 The parser or syntactic analyzer obtains a string of tokens from the lexical analyzer and…
Posted inCompiler Design Syntax Analysis Posted by admin July 20, 2021 Syntax analysis or parsing is the second phase of a compiler. In this chapter, we…
Posted inCompiler Design Minimization of DFA Posted by admin July 20, 2021 DFA minimization stands for converting a given DFA to its equivalent DFA with minimum number…
Posted inCompiler Design Regular Expressions Posted by admin July 20, 2021 The lexical analyzer needs to scan and identify only a finite set of valid string/token/lexeme…
Posted inCompiler Design Finite Automata Posted by admin July 20, 2021 Finite automata is a state machine that takes a string of symbols as input and…
Posted inCompiler Design RECOGNITION OF TOKENS Posted by admin July 20, 2021 Consider the following grammar fragment: stmt β if expr then stmt | if expr then…