The Syntax Analyzer is a program that implements a syntax analyzer (SA) for a simple programming language. Its main function is to ensure that a user's source program is syntactically correct according to the language's grammar. The SA generates appropriate and helpful error messages when necessary. This program serves as part of a compiler for the specified language.
- Syntax recognition: The program analyzes the syntax of source programs and determines whether they are valid according to the specified grammar.
- Error reporting: The program generates detailed error messages to indicate the location and nature of syntax errors in the source code.
- Recursive descent parsing: The program uses a recursive descent parser to perform syntax analysis based on the grammar rules.
To use the Syntax Analyzer, follow these steps:
- Clone the repository: `
git clone https://github.com/miklovis/SyntaxAnalyzer.git`
- Navigate to the project directory:
cd SyntaxAnalyzer
- Run
compile.batfile. - Run
execute.batfile. - The program will analyze files stored in the
Programs Folder. - You can find the analyzed output line-by-line in
output.txtand you can find the result file (error outputting) inres.txt.
For any questions, suggestions or inquiries related to the tool, do not hesitate to contact me: