Skip to main content

A tool to generate and translate C++ code to other languages from one code-base.

Project description

ci Status
Travis Build Status

Trello Board

Simple using:

cd src
python main.py

Configured launch:

Parameters:

    -h, --help      show this help message and exit
    -i              Path to classes configs. Default = ./config/
    -o              Out Path for classes. Default = ./out/
    -l              Used language. Supported cpp, py, php. Default = cpp
    -f              Used serialized format. Supported xml, json. Default = xml
    -side           To different side generation, used both, server, client. Default = both
    -data           Path to static data configs. Default = empty, conversion is not used
    -data_out       Out path for static data config. Default = empty
    -only_data      Flag for build only data xml. Default = no
    -protocols      Path to file with serialization protocols. Default = empty, default protocol is used
    -php_validate   Check PHP features on generate other languages. Default = yes
    -test_script    The path to the script to run the tests
    -use_colors     Using colors on outputting to the console

Syntax:

class core/Request<RequestBase>
{
    Action action
    int int_data
    float float_data = 0
    function void some_function(){}
}

class - keyword

core/ - The module. Used only for grouping classes into folders for c++ generation

Request - Name of the class

RequestBase - The inherited class. Multiple inheritance is not supported.

{ ... } - Body of the class or method

int int_data - Field of class int_data of integer type.

int float_data - Field of class float_data of float type with initialized.

function void some_function(){} - Method of the class without body

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlc-tools-0.4.1126.tar.gz (106.0 kB view details)

Uploaded Source

File details

Details for the file mlc-tools-0.4.1126.tar.gz.

File metadata

  • Download URL: mlc-tools-0.4.1126.tar.gz
  • Upload date:
  • Size: 106.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for mlc-tools-0.4.1126.tar.gz
Algorithm Hash digest
SHA256 a8370b190238b403fc48ae39975e9eb13121a17ae85f8615a6863684669029df
MD5 50ba75e580f57ee6b5a35c8cc6ae394e
BLAKE2b-256 98407be45fb62447375d2bc596911ccdb62f257e52ca2625a42050af5a037ea2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page