Skip to content

Converting a working system (written in LUA) into Python

License

Notifications You must be signed in to change notification settings

Manan1612/Python-to-Lua

 
 

Repository files navigation

Table of Contents

  • Overview
  • Target Audience
  • Classes and Test Case
  • Getting Started
  • Instructions to run the Tests and Display Results
  • Documentation
  • License
  • Contributors
  • Help
  • Overview

    Converting LUA Code to Python

    Lua is a powerful scripting language with several functionalities such as :

    1. Procedural programming
    2. Object-oriented programming
    3. Functional programming
    4. Data-driven programming

    This repo seeks to translate a Lua code into Python while maintaining its essential logic and functionalities.


    Target Audience

    This repo is for users who want to get detailed understanding of LUA working system and converting it into Python

    The source LUA code can be found here


    Classes and Test Case

    The Python Code for Cols, Data, Num, Row, Sym and Utils is available in this repo

    The Test Cases for all the Classes are also available here

    Classes
    Cols Data Num Row Sym Utils

    Getting Started

    To run these programs make sure you have python version 3 and pytest version 7 installed.

    python --version

    Run the following command to install all requirements.

    pip install -r requirements. txt

    Instructions to run the Tests and Display Results

    Initially you need to add the following paths to the Environment variables under System Requirements\Advanced\Environment Variables\System Variables\Path\New

    ...<path to directory>\CSC510_Group25_HW02-main\code
    ...<path to directory>\CSC510_Group25_HW02-main\data

    For Example

    Open the following directory in Command Prompt using

    cd ...<path to directory>\CSC510_Group25_HW02-main

    To check whether the test caes are running correctly, execute the following command.

    pytest tests/test_lua.py -v

    Example output

    To view the results of tasks, execute the following command.

    python code/main.py

    Example output


    Documentation

    For documentation, you can help yourself by referring to Documentation

    Licenses

    MIT License is used in this project.


    Help

    You can email any queries to the contributors -
  • Divya Giridhar
  • Shreyas Titus
  • Dhruv Patel
  • Ravi Ghevariya
  • Manan Patel


  • |  Dhruv Patel  |  Manan Patel  |  Ravi Ghevariya  |  Divya Giridhar  |  Shreyas Titus |


    About

    Converting a working system (written in LUA) into Python

    Resources

    License

    Code of conduct

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages

    • Python 100.0%