Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.

Tugas Besar TBFO - Python Compiler with Context Free Grammar

Notifications You must be signed in to change notification settings

Adityapnn811/Python-Compiler

 
 

Repository files navigation

Python-Compiler

Tugas Besar TBFO - Python Compiler with Context Free Grammar

Dibuat oleh:

  • Aditya Prawira N - 13520049
  • Felicia Sutandijo - 13520050
  • Christopher Jeffrey - 13520055

Struktur Direktori

  1. cfg.txt → Berisi aturan produksi CFG
  2. cnf.txt → Berisi hasil konversi cfg.txt menjadi cnf
  3. dfa.txt → Berisi dfa untuk aturan penamaan variabel
  4. CFGtoCNF.py → Berisi fungsi yang mengonversi cfg.txt dan menuliskannya ke dalam cnf.txt
  5. CNFtoCNFdict.py → Berisi fungsi yang mengonversi cnf.txt ke dalam bentuk dict
  6. CYK.py → Berisi fungsi yang menggunakan algoritma CYK untuk mengetes membership
  7. FA.py → Berisi fungsi yang mengetes validasi penamaan variabel
  8. tokenizer.py → Berisi fungsi yang mengubah input menjadi token

Cara Menjalankan Program

python3 parserprogram.py nama_file

About

Tugas Besar TBFO - Python Compiler with Context Free Grammar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%