Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muhammadsaadhsn/compiler-on-cpp
In this project, I have developed a small compiler that reads a .txt file. The compiler performs two main tasks: parsing the file and detecting any errors within it. After successfully parsing the file, the compiler proceeds to read specific commands for image processing functionalities. These functionalities have been implemented using OpenCV.
https://github.com/muhammadsaadhsn/compiler-on-cpp
image-processing opencv
Last synced: 2 days ago
JSON representation
In this project, I have developed a small compiler that reads a .txt file. The compiler performs two main tasks: parsing the file and detecting any errors within it. After successfully parsing the file, the compiler proceeds to read specific commands for image processing functionalities. These functionalities have been implemented using OpenCV.
- Host: GitHub
- URL: https://github.com/muhammadsaadhsn/compiler-on-cpp
- Owner: muhammadsaadhsn
- License: mit
- Created: 2022-12-26T07:28:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T13:04:38.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T15:39:50.857Z (14 days ago)
- Topics: image-processing, opencv
- Language: C++
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compiler built in C++
## Parsing the File
The file will be in txt format, and stack is used to read the file. There will be different tags in file, each tag have specific meaning like
Start, head, paragraph, pre_exp, sol_exp, post_exp, function, and read_image.
Every tag has a syntax for open and closing like start tag will be start with |start| and end on |\start|. Same syntax will be followed for the other tags.### Tag explanation:
* Start→ Indicates the starting and ending of document.
* Head→ Indicates the section header, you have to print it on the top.
* Tab→ insert tab.
* Priority→ This tag contains the document priority.
* Paragraph→ Contain the text that is printed, but there can be multiple tags inside the paragraph.
* Pre_exp→ There will be infix expression inside the tag and that expresion is converted into prefix form and printed on the place of infix expression.
* Post_exp→ There will be infix expression inside the tag and that expresion is converted into postfix expression and printed on the place of infix expression.
* Sol_exp→ There will be an expression inside the tag and is evaluated and that statement is printed on the place of infix expression.
* Function→ This tag contains the function. This fucntion is compiled and the output is shown.
* Read_image→ This tag will contain the image source path and that image is read. The image is compiled and finds the
objects in region, it also save the new images generated by the algorithms.