Skip to content

KonstantinosVasilopoulos/mini_python_compiler

Repository files navigation

Compiler for MiniPython

Description

This project's goal was to build a compiler's grammar as well as create the compiler's Lexer, Syntax and Semantics check.

This compiler was made for a simplified version of the python language (MiniPython), and was created with the help of SableCC. The compiler is based on the following BNF.

BNF

How to Run

  1. Open command prompt
  2. Navigate to the project's directory
  3. Execute the grammar by running the following command: sablecc minipython.grammar
  4. Compile all Java files by executing: javac *.java
  5. Execute the Semantics Test on the python test file of your choice by running: java Semantics [yourTest.py]

Team Members

About

A compiler for a Python-like language, made using SableCC.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •