Skip to content

apwic/context-free-grammar-python-compiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Python Compiler

Member List

NameNIMClass
I Gede Arya Raditya Parameswara13520036K01
Muhammad Garebaldhie Er Rahman13520029K01
Adiyansa Prasetya Wicaksana13520044K01

Specification

NameLink
SpecificationSpecification Link
GroupsGroup Spreadsheet

Features

This Programs allows you to validate your python file and give verdict, whether it accepted or not the program will print the result into your terminal.

How to use

  1. Make sure you have python installed in your computer
  2. git clone https://.com/gedearyarp/TUBES-TBFO.git
  3. Create file that you want to validate and put it into test folder
  4. cd src
  5. Run main.py with the argument python main.py test/<filename.py> and you will get the verdict of your file!

How it works?

  1. The program will read the file through the end of the file
  2. After read all the lines the program will transform all of the word into token
  3. After the token are created, we use CNF in the grammar to validate it
  4. If the token follows the rule of the CNF. So whether the program is valid or not it will print the verdict!

About

Simple Python Syntax Checker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%