Home

Awesome

Trad

GitHub Actions Build Status

Introduction

(中文/English)

A lightweight and C based language for building user interfaces.

Trad is:

Trad's syntax is based on JavaScript, it has good compatibility with existing JavaScript development tools/editor extensions, and it won't change much for a long time, so you can temporarily write it as JavaScript.

Example

Installing

npm install -g tradlang

Usage

Compile to C source file:

tradc example.jsx

Compile to binary file:

gcc -c example.jsx.c
gcc -o example example.jsx.o -lLCUI

Note: The UI layer of the Trad application is powered by LCUI and you should install it before compiling.

The current version only implements the features required for the smallest sample application and cannot be applied to actual projects. Please wait for future updates.

Contribute

There are many ways to contribute to Trad.

Trad has adopted the code of conduct defined by the Contributor Covenant. This document is used across many open source communities, and we think it articulates our values well. For more, see the Code of Conduct.

Roadmap

The main tasks are listed below, for detailed work plans and progress please see the project boards.

License

Trad is MIT licensed.