This is a lexical analyzer made in Java, for the Compilers subject at university, to reconize simple comands from a fake language.
The language includes the following commands:
- ADD
- SUB
The tokens are:
- COMMAND: (PRINT, ADD, SUB)
- STRING: sequency of characters between quotes
- NUMBER: a integer number
- WHITESPACE: spaces, could be ignored