Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plus++ Language Interpreter

📄 About the Project

Plus++ Language Interpreter is an interpreter capable of processing commands written in the Plus++ language.
The project processes Plus++ code in the following steps:

  1. Tokenization: Splitting the code into tokens.
  2. Parsing: Checking the code for grammatical correctness according to language rules.
  3. 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.

📁 Project Structure

  • 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 .ppp example files.

🚀 Technologies Used

  • C Programming Language

About

Plus++ Language Interpreter is a command-line tool written in C that can read, parse, and execute code written in the Plus++ programming language. It allows users to run Plus++ source files and see the results or errors in the console.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages