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

https://github.com/markjasongalang/lexical-analyzer-in-cli-using-java

Command-line lexical analyzer which only accepts arithmetic expressions
https://github.com/markjasongalang/lexical-analyzer-in-cli-using-java

command-line eclipse-ide integers lexical-analyzer tokenizer

Last synced: 2 months ago
JSON representation

Command-line lexical analyzer which only accepts arithmetic expressions

Awesome Lists containing this project

README

        

# Lexical-Analyzer-in-CLI-using-Java
### Quick Info
This program performs the lexical analysis process for mathematical expressions only.
The lexical analysis creates tokens based on the string input (e.g., INT:12, ADD:+, etc.).

Note: To exit the command line, use this keyword:
```
basic > exit
```
### Sample Testcases
![image](https://user-images.githubusercontent.com/104606066/180653103-fe23b151-950b-4f31-a740-e6986b7e021f.png)
---
![image](https://user-images.githubusercontent.com/104606066/180653191-6692ac11-1e20-4af3-8047-0a1b2389e932.png)
---
![image](https://user-images.githubusercontent.com/104606066/180653224-727cfe25-c171-4d02-a7f2-f2f1e272fe9c.png)
---
![image](https://user-images.githubusercontent.com/104606066/180653281-f8b4ca08-782d-45c9-bbae-7aa3aef3ed13.png)
### Note from the developer
If you're going to run this project, then it is preferable to use Eclipse IDE since that's the one that I used.