Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/udoy2/lexical_analyzer_in_cpp
🚀 A simple lexical analyzer for custom code! 📄 Analyzes and identifies tokens from "text.mylang".
https://github.com/udoy2/lexical_analyzer_in_cpp
compiler-design cpp lexical-analyzer
Last synced: 6 days ago
JSON representation
🚀 A simple lexical analyzer for custom code! 📄 Analyzes and identifies tokens from "text.mylang".
- Host: GitHub
- URL: https://github.com/udoy2/lexical_analyzer_in_cpp
- Owner: Udoy2
- Created: 2024-06-24T15:06:45.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T04:28:49.000Z (5 months ago)
- Last Synced: 2024-06-30T06:58:11.069Z (5 months ago)
- Topics: compiler-design, cpp, lexical-analyzer
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Lexical Analyzer
🚀 A simple lexical analyzer for custom code! 📄
## Description
This project is a basic lexical analyzer that processes code from a file named `text.mylang`. It identifies and categorizes tokens, providing basic error handling for incorrect syntax.## Features
- Reads code from `text.mylang`
- Identifies tokens such as variables, operators, and delimiters
- Provides basic error detection for invalid token initialization## Usage
1. Place your code in a file named `text.mylang`.
2. Run the program to analyze and print the identified tokens.## Example
```cpp
// Sample code in text.mylang
int x = 10 + 20;
```The output will display all lexemes (tokens) identified in the code.
## Contributing
Feel free to submit issues or pull requests for improvements or bug fixes!## License
This project is licensed under the MIT License.