Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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".

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.