Tutorial by Examples

In this example I will show you how to make a basic lexer which will create the tokens for a integer variable declaration in python. What does the lexical analyser do? The purpose of a lexer (lexical analyser) is to scan the source code and break up each word into a list item. Once done it tak...
This is a simple parser which will parse an integer variable declaration token stream which we created in the previous example Simple Lexical Analyser. This parser will also be coded in python. What is a parser? The parser is the process in which the source text is converted to an abstract syn...

Page 1 of 1