Plus++ Language Interpreter is an interpreter capable of processing commands written in the Plus++ language.
The project processes Plus++ code in the following steps:
- Tokenization: Splitting the code into tokens.
- Parsing: Checking the code for grammatical correctness according to language rules.
- Interpreting: Executing valid code and producing output.
The interpreter reads the code from a file.
- If a syntax or semantic errors is found, an error message is printed to the console.
- If there are no errors, the program output is displayed in the console.
- main.c: Entry point of the interpreter.
- parser.c / parser.h: Responsible for parsing Plus++ code.
- tokenizer.c / tokenizer.h: Responsible for tokenizing (lexical analysis) the input code.
- interpreter.c / interpreter.h: Executes the parsed Plus++ code.
- AST.h: Defines Abstract Syntax Tree (AST) structures.
- correct1-4.ppp: Example Plus++ source files with correct code.
- erroneous1-10.ppp: Example Plus++ source files with syntax or semantic errors.
- ppp.exe / main.exe: Compiled executable files (for Windows).
- .vscode/: Visual Studio Code configuration files.
You can test the interpreter using the provided
.pppexample files.
- C Programming Language