
Presentation for this Course.
By the end of this section, the Src code snapshot would be pointed to by this git hashcode : 09b5e974211fda2b61adf475aaa05d0f0e7f5331
How to setup this commit hashcode, pls follow the below steps :
Download git repo :
https://github.com/sachinites/MathExpressionParser
switch to branch Oops
git checkout Oops
Set the git head to above hash code
git reset --hard 09b5e974211fda2b61adf475aaa05d0f0e7f5331
To comeback to latest commit :
git pull
Now check files in MathExpressionParser/Course
I am attaching the fully fixed Parser.l and ParserExport.h file with the last lecture in this section, because we needed to fix a couple of bugs in these sections as those bugs went undetected and could not be found until very later stage in this course.
Therefore, pls download these attached files from the last lecture of this section, and ensure you have fully fixed files in your codes. Files are Parser.l and ParserExport.h files.
Regular expressions used in this lecture can be copy pasted from the attached text file.
I am attaching the fully fixed Parser.l and ParserExport.h file here, because we needed to fix couple of bugs in these section as those bugs went undetected and could not be found until very later stage in this course.
Therefore, pls download these attach files and ensure you have fully fixed files in your codes.
This Section is Applicable only for those who are aiming to do RDBMS Project - the next project dependent on Mexpr Library
Have you ever thought about how front-end CLIs or command lines are written for various CLI-based devices?
for example, How to write a Parser for SQL Queries?
How to write a parser to parse mathematical expressions and evaluate them only when they are valid?
Then this is the course that promises implementation of Generic Parsers in C/CplusPlus.
In this course, we will be going to write OOPs-based C++ code to build the Parser a.k.a Mathematical Expression Library. This library helps the programmer to develop applications with ease that require the calculation of tedious mathematical expressions. Not only that, We will also cover how to parse Expressions representing Inequalities or logical expressions.
Once this project is fully ready and tested, we will import this project as a black box to solve even bigger projects such as the Implementation of RDBMS from Scratch.
So best of luck and Happy learning. This course is very interesting and I am sure you will going to enjoy it a lot in this course. This will be a sporty course!
Pre-requisite for this course
Basic Regular Expressions
OOPs basic concepts
Binary Search Tree Algorithms ( Post-Order )
Infix to postfix conversion
Agenda
Writer Parsers using Lex ( GNU Lexical analyzer )
Implement Grammars in C/CplusPlus
Construct and Build Expression Trees
Evaluate Expression Trees, Inequalities, and Logical Expressions
Case Study
Writing Parsers to Parse SQL Queries