![]() It is a process of converting a sequence of characters into a sequence of tokens by a program known as a lexer. Lexical analysis, often known as tokenizing, is the first phase of a compiler. The diagram below shows the main phases taken for the front-end of the compiling process. After days of readings, it seems that the first thing to do is to build a query parser which takes in SQL text and produces a parse tree which can be sent to the query optimizer or processor.Ĭonceptually, an interpreter or a compiler operates in phases, each of which transforms the code from one representation to another. I was trying to learn how a database engine is actually implemented, and I feel that the best way to do so is to try to build one myself. ![]() Lexical Analysis with ANTLR v4 - February 16, 2017 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |