The program implements lexical and syntactic parsers. The program is written for code that is very similar to Pascal (PascalABC).
- Lexical analyzer
- Syntax analyzer
- Basic error search (Unknown type/value)
- Variable ("true" and "true1" are different)
- States (true, false)
- Separators (';' does not equal ':')
- Search for errors in the logic or spelling of lexemes
- Floating point number detection
- Arrays []
- Loops (for, while, etc)
- A lot of other things.
This abstract syntax tree is based on the file \Samples\Sample 2.txt