I wanted to clear the concepts of:
- Using Header files properly
- pointers
- MACROS
- Using CMAKE
- Static and Dynamic library linking
For this, I have decided to build a simple parser
confusinC++/ ├── include/ │ ├── commands.h │ ├── parser.h │ ├── dispatecher.h │ └── executor.h │ ├── src/ │ ├── commands.cpp │ ├── parser. │ ├── dispather.c │ ├── executor.cpp │ └── main.cpp
For better understanding for myself and other people who have trouble, i have added comments and explanations.
how to use cmake and use this
mkdir build cd build cmake .. cmake --build .
AI usage: I did use ChatGPT web for understanding how to use the concepts I had problem in, learning the logic of a parser and examples.