Writing a small parser / interpreter (Part 1: Scanner)
Perhaps some time in your career you've been asked to write a small "conversion tool", one which "shall perform a simple translation" of some text input and produce a text output. So, you grab the...
View ArticleWriting a small parser / interpreter (Part 2: Parser)
In the previous step, we looked at how to write a lexical scanner for a small subset of the LOGO programming language.Our parser relies heavily on the fact that we're parsing a CFG language free from...
View ArticleWriting a small parser / interpreter (Part 3: Semantic processing and simple...
In the previous two steps we crafted a scanner and a parser for a subset of the LOGO programming language:Part 1: ScannerPart 2: ParserBut, besides recognizing tokens and legal sentences, we also need...
View Article
More Pages to Explore .....