Parsing Algorithms
Course
Online
Description
-
Type
Course
-
Methodology
Online
-
Start date
Different dates available
Course overviewParsing or syntactic analysis is one of the first stages in designing and implementing a compiler. A well-designed syntax of your programming language is a big motivation why users would prefer and choose exactly your language.The problem with “parsers theory” in classic compiler schools and books is that this theory is often considered as “too advanced”, going right into complicated formal descriptions from the Theory of Computation and formal grammars. As a result students may lose an interest in building a compiler already at parsing stage.The opposite problem often seen in describing a parser is a superficial approach describing only manual (usually recursive descent) parsing, leaving the students with issues understanding the actual techniques behind the automated parsers.I believe this deep dive into the parsing theory should be combined together with a hands-on approach, which goes in parallel and allows seeing all the learned theoretical material on practice.In the Essentials of Parsing (aka Parsing Algorithms) class we dive into different aspects of the parsing theory, describing in detail the LL and LR parsers. However at the same time to make the learning process and understanding easy and fun, we build in parallel an automatic parser for a full programming language, similar to JavaScript or Python, from scratch.After this class not only you will be able to use a parser generator to build parsers for programming languages, but will also understand how the parser generators work under the hood themselves.Implementing a parser for a programing language would also make your practical usage of other programming languages more professional.Who this class is for?This class is for any curious engineer, who would like to gain skills of building complex systems (and building a parser for a programing language is a pretty advanced engineering task!), and obtain a transferable knowledge for building such systems. topics in...
Facilities
Location
Start date
Start date
About this course
Context-free grammars
Abstract Syntax Trees
Parser generators
Build a full parser from scratch using parser generator
Top-down LL parsers
Bottom-up LR parsers
Backtracking parsers
Left-recursion and Left-factoring
Predictive recursive descent parsers
LL(1), LR(0), SLR(1), CLR(1), LALR(1) parsers
Shift-reduce algorithm
Syntax tool: language-agnostic parser generator
Reviews
This centre's achievements
All courses are up to date
The average rating is higher than 3.7
More than 50 reviews in the last 12 months
This centre has featured on Emagister for 4 years
Subjects
- Programming
- Grammar
- Systems
- Syntax
- Algorithms
- Approach
- Conflict
Course programme
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- Course overview
- Parsing pipeline
- Tokenizer module
- Parser module
- AST: Abstract syntax tree
- Hand-written vs. Automatic parsers
- Recursive descent
- LL and LR parsing
- Formal grammars
- Terminal, non-terminals and productions
- Chomsky grammar hierarchy
- Context-free grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- BNF notation (Backus-Naur form)
- RegExp notation
- Tokenizer and Parser
- Derivation process
- Left-most and Right-most derivations
- Parse trees
- Depth-first traversal — string on leaves
- Ambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Ambiguous grammars
- Left- and Right-associativity
- Operator precedence
- Left recursion
- Non-terminal levels
- Unambiguous grammars
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- Syntax tool introduction
- Parser generators
- BNF grammar
- Associativity and precedence
- LALR(1) parsing mode
- Letter programming language
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- CST: Concrete Syntax Tree (aka Parse Tree)
- AST: Abstract Syntax Tree
- Semantic actions
- Inline interpreter for simple DSLs
- AST nodes generation
- Parenthesized expression
- Top-down parsers
- Bottom-up parsers aka Shift-Reduce
- Left recursion
- Recursive descent parser
- Backtracking parser
- Left factoring
- Common prefix rules
- Why backtracking is slow
- Left-factoring
- Left-recursion
- Indirect recursion
- Predictive parsing
- Concept of Lookahead tokens
- Recursive descent parser
- First & Follow sets
- Predictive parsing
- Concept of Lookahead tokens
- Structure of the LL(1) parser
- First set calculation
- Follow set calculation
- Syntax tool example
- Lookahead tokens
- Structure of LL(1) parser
- First & Follow sets
- LL(1) parsing table
- Predict set
- LL(1) conflicts
- Structure of LL(1) parser
- LL(1) parsing table
- Parsing stack (Push-down automata)
- Left-most derivation
- Abstract algorithm of the LL(1) parser
- Module include: reusing helper functions
- AST formats: explicit and S-expression format
- Statements and Statement lists
- Program: main entry point
- Blocks: groups of statements
- Module include: reusing helper functions
- AST formats: explicit and S-expression format
- Statements and Statement lists
- Program: main entry point
- Blocks: groups of statements
- Module include: reusing helper functions
- AST formats: explicit and S-expression format
- Statements and Statement lists
- Program: main entry point
- Blocks: groups of statements
- Module include: reusing helper functions
- AST formats: explicit and S-expression format
- Statements and Statement lists
- Program: main entry point
- Blocks: groups of statements
- Module include: reusing helper functions
- AST formats: explicit and S-expression format
- Statements and Statement lists
- Program: main entry point
- Blocks: groups of statements
- Optional statements
- Empty blocks
- Function declarations
- If-else statements
- Shift-reduce conflict example
- Optional statements
- Empty blocks
- Function declarations
- If-else statements
- Shift-reduce conflict example
- Optional statements
- Empty blocks
- Function declarations
- If-else statements
- Shift-reduce conflict example
- Optional statements
- Empty blocks
- Function declarations
- If-else statements
- Shift-reduce conflict...
Additional information
Parsing Algorithms