Skip to content

mlc-tools/mlc-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A code generation utility for C++ and Python based on MLC configs.

Features:

Build:

cd ci
./build_and_install.sh

Run tests:

cd ci
./tests.sh

Syntax

class core/Request<RequestBase>
{
    Action action
    int int_data
    float float_data = 0
    fn void some_function(){}
}
  • class: keyword
  • core/: module. Used only to group classes into folders for C++ generation
  • Request: class name
  • RequestBase: base class. Multiple inheritance is not supported
  • { ... }: class or method body
  • int int_data: integer field named int_data
  • float float_data = 0: float field named float_data with an initializer
  • fn void some_function(){}: class method without a body

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published