https://github.com/steponask/invalid-brackets-detector
Detect Invalid brackets in your file!
https://github.com/steponask/invalid-brackets-detector
bracket-dectection cpp invalid-brackets oop
Last synced: 11 months ago
JSON representation
Detect Invalid brackets in your file!
- Host: GitHub
- URL: https://github.com/steponask/invalid-brackets-detector
- Owner: SteponasK
- Created: 2024-04-23T16:01:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T16:23:19.000Z (about 2 years ago)
- Last Synced: 2025-03-20T17:17:45.604Z (over 1 year ago)
- Topics: bracket-dectection, cpp, invalid-brackets, oop
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Invalid Bracket Detector
This application detects invalid brackets in a given file. The possible brackets are:
| Bracket Type | Description |
|--------------|-------------|
| `[]` | Square brackets |
| `{}` | Curly braces |
| `()` | Round brackets |
## đźš« Error
* Invalid bracket information is printed in this format:
```
Invalid bracket found at ::.
```
## âž• Additions:
* Does your application support files larger than your computer’s RAM?
* * Current implementation reads given file line by line, so it is memory-efficient. So it should handle files larger than computers RAM.
* * If there are performance issues, and we need to optimise reading, we could read the file by chunks.
* After your program finishes processing the input from the file, some other module should process this input. Another module can do it in parallel. What is the best “place” in the program to call this module? The module can be called by function nextProcessor(input string)
* * The best place to call __nextProccessor()__, would be right after line 87 if we want to process all the errors after the __whole__ file was scanned:
``` detector.detectInvalidBrackets();```
## ⬇️ Getting Started:
* Clone the repo:
```
https://github.com/SteponasK/Invalid-Brackets-Detector.git
```
* run main.cpp file.
* * DONT FORGET COMMAND LINE ARGUMENTS!:
```
Usage: ./bracket_detector
```
## đź‘‘ Authors
* SteponasK - initial work.