GithubHelp home page GithubHelp logo

discrete-push-down-automata's Introduction

Description

This is a deterministic pushdown automata simulator program. The DPDA recognizes DCFLs.

Made by: Longno, Darren Lu, Juhlia Villarama, Kenn

STALGCM S13

How to Use

When it comes to the input and output format of the simulation of the machine, " ̃ " is used to represent lambda/epsilon λ . As for the inputted fields and format for the machine definition file, the machine either accepts its input through the GUI itself or it can be attached a machine definition file in .txt format through the "Load DPDA" button. A machine definition file for DPDA contains the contents of text fields 2 to 7. Moreover, the following fields and their functionalities are as follows:

Text Field 1: Name of the DPDA program (Note: This can also be the .txt file’s file name.) Text Field 2: Symbols to be used for the input alphabet that is separated by a comma " (Note: " ̃ " is not allowed as an alphabet character) Text Field 3: Symbols to be used for the stack alphabet that is separated by a comma (Note:" ̃" is not allowed as an alphabet character) Text Field 4: Names of the states separated by commas (ex: q0,q1,qs) Text Field 5: The Start State (ex: q0) Text Field 6: List of state names separated by commas that are considered as the accepting states (ex. q1,qs) Text Field 7: One transition rule per line with the format: ,, | , (Note: Processing of rules stops with the end of the .txt file)

After pressing the "Start Machine" button, the DPDA simulator will display the steps that the DPDA took throughout its run. All logs of the steps taken are indicated in a text box that can be scrolled through by the user. In each step, the logs will contain the current state, the input symbol being processed, and the contents of the stack. Finally, the machine status will also be indicated in the logs as well as in a dialog box. Additionally, users can choose to save their machine definition in a .txt file through the "Save DPDA" button for convenience

Dependencies

You need to install the following dependencies in order to run the program in your computer:

  • tkinter
  • customtkinter

pip install tkinter pip install customtkinter

discrete-push-down-automata's People

Contributors

kennymkl avatar

Watchers

 avatar

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.