Posts

Showing posts with the label CParser

SQL Server, inside the parser: the Get_Gen_Lex procedure

Image
Hello friends, Well, we have arrived on Mars! The Perseverance probe designed by NASA reached the Red Planet after 203 days! "The human being by his nature always wants to overcome his limits and go beyond. If curiosity is the great engine that makes humanity progress, science is the engine. Today is a big day for science!" To this and to those who do not want to have limits I dedicate this post .   Yes, again about the Parser of SQL Server   Today we talk about another procedure of the SqlLang.dll the Get_Gen_Lex procedure. This is the second part of a series of posts about the parser and you can find the first part here Enjoy the reading! The CParser::Get_GenLex procedure This procedure, part of the CParser class, is usually called after the GetChar procedure and it is used to classify the character just read. In many parts of the LGetToken routine for example we have: Procedure and parameters Looking at the source below   we can say that the declaration is: int CP...