Giter VIP home page Giter VIP logo

sqfcompiler's Introduction

SQFCompiler

Introduction

SQFCompiler is a Python program that translates Python code into SQF (Script Query Format) code. It aims to provide a bridge between the two languages, enabling developers to write scripts in Python and then compile them into SQF for use in environments that support SQF, such as Arma 3.

Note: This is a highly experimental version of the compiler and currently supports only a very limited subset of Python syntax.

Installation

To install SQFCompiler, you need to have Python 3.11 installed on your system. This program has not been tested on other Python versions, so using it with other versions is not recommended.

Clone or download this repository, and then use pip to install the required dependencies:

pip install -r requirements.txt

Usage

Once the dependencies are installed, you can use the following command to compile a Python file into SQF:

py main.py fileIn.py fileOut.sqf

Where fileIn.py is the input Python file you want to compile, and fileOut.sqf is the output file where the compiled SQF code will be saved.

Limitations

Please note the following limitations of the current version of SQFCompiler:

  1. Python Version: This program has only been tested with Python 3.11. Using it with other Python versions may result in unexpected behavior or errors.
  2. Supported Syntax: SQFCompiler currently supports only a very limited subset of Python syntax. More complex features and constructs may not be recognized or translated correctly.

License

SQFCompiler is licensed under the MIT License. See the LICENSE file for more information.

sqfcompiler's People

Contributors

asss-whom avatar

Stargazers

 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.