Git Product home page Git Product logo

scrypton's Introduction

Scrypton

Compiler Project on Python completed till Syntax Analyzing Phase
Scrypton is just the name of compiler we gave to the language since we are making it from python, hence S C R Y P T O N

How to run

run this command in git bash in your folder
git clone https://github.com/iAnas19/Scrypton
then
cd Scrypton
after cloning it run the main.py file only, it will execute the whole code it self.

What these files are doing?

  • WordBreaker file is breaking the word.
  • Lexical is tokenizing it.
  • Syntax is Checking if the given code is valid.
  • .txt files are just code you will run to see if you wrote a correct syntax or not.
  • main file will tokenize the code present in the txt file and pass it from syntax if else statement to verify if it is valid Syntax.
  • Token file just have a class of values or properties a token may contain.

How to see the valid syntax of the language?

Currently I have changed the CFG in the code from documentation. I won't be uploading it because it might create confusion. So, just open Syntax.py and see the syntax of each statements on your own. And if you still have any queries, contact me if you have any problem

Note

I did not create this entire project on my own, it was a group project in my 5th semester of Compiler Construction's Course.
It contains few bugs. Copy it on you own behalf.

scrypton's People

Contributors

ianas19 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

anosha020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.