Skip to content

wiktoriasalamon/Compiler

Repository files navigation

Kompilator

Autor: Wiktoria Salamon

Wymagania systemowe

Aby zainstalować niezbędne do uruchomienia programu zależności (python3 oraz biblioteka SLY) można skorzystać ze skryptu install.sh:

$ ./install.sh

lub zainstalować je samodzielnie:

$ sudo apt update
$ sudo apt install python3
$ sudo apt install python3-pip
$ pip3 install sly

Uruchamianie kompilatora

Aby skompilować kod źródłowy języka do kodu maszyny wirtualnej należy w katalogu głównym projektu użyć polecenia:

$ python3 kompilator.py <nazwa_pliku_wejściowego> <nazwa_pliku_wyjściowego>

Pliki

  • code_generator.py
  • compiler.py
  • compiler_classes.py
  • exceptions.py
  • install.sh
  • kompilator.py
  • lexer.py
  • parser.py
  • README.md

About

Simple compiler written in SLY

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors