All Projects → lc-soft → trad

lc-soft / trad

Licence: MIT license
A JavaScript-like and C based language for building user interfaces.

Programming Languages

javascript
184084 projects - #8 most used programming language
c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to trad

ink-box
Styled box component for Ink
Stars: ✭ 113 (+24.18%)
Mutual labels:  jsx
iwish
I wish that too!
Stars: ✭ 19 (-79.12%)
Mutual labels:  jsx
snap-state
State management in a snap 👌
Stars: ✭ 23 (-74.73%)
Mutual labels:  jsx
adobe-discord-rpc
Discord Rich Presence extension for your adobe apps!
Stars: ✭ 383 (+320.88%)
Mutual labels:  jsx
tung
A javascript library for rendering html
Stars: ✭ 29 (-68.13%)
Mutual labels:  jsx
react-for
A React component library to create loops in JSX
Stars: ✭ 22 (-75.82%)
Mutual labels:  jsx
ExtendScript-for-Visual-Studio-Code
Extension that adds Adobe ExtendScript support to Visual Studio Code
Stars: ✭ 29 (-68.13%)
Mutual labels:  jsx
keystone-with-react-engine
KeystoneJS CMS with React Engine as rendering engine, so we can render backend .jsx templates
Stars: ✭ 17 (-81.32%)
Mutual labels:  jsx
ai-merge
Import your SVG, AI, EPS, and PDF files into a single Illustrator document.
Stars: ✭ 65 (-28.57%)
Mutual labels:  jsx
react-cheat-sheet
📚 The perfect React Cheat Sheet for daily use with a lot of Javascript / JSX snippets !
Stars: ✭ 59 (-35.16%)
Mutual labels:  jsx
next-boilerplate
📐 A modern universal boilerplate for React applications using Next.js.
Stars: ✭ 15 (-83.52%)
Mutual labels:  jsx
unplugin-icons
🤹 Access thousands of icons as components on-demand universally.
Stars: ✭ 2,064 (+2168.13%)
Mutual labels:  jsx
react-starter
ARCHIVED: Please use @neutrinojs/create-project
Stars: ✭ 32 (-64.84%)
Mutual labels:  jsx
BarterOnly
An ecommerce platform to buy or exchange items at your convenience
Stars: ✭ 16 (-82.42%)
Mutual labels:  jsx
re-hyperapp
Almost zero-cost bindings for the https://github.com/hyperapp/hyperapp UI library.
Stars: ✭ 21 (-76.92%)
Mutual labels:  jsx
nornj
More exciting JS/JSX based on Template Engine, support control flow tags, custom directives, two-way binding, filters and custom operators.
Stars: ✭ 97 (+6.59%)
Mutual labels:  jsx
javascript
Traveloka JavaScript style guide
Stars: ✭ 24 (-73.63%)
Mutual labels:  jsx
recks
🐶 React-like RxJS-based framework
Stars: ✭ 133 (+46.15%)
Mutual labels:  jsx
element
Fast and simple custom elements.
Stars: ✭ 65 (-28.57%)
Mutual labels:  jsx
typescript-transform-jsx
Typescript transform jsx to string
Stars: ✭ 22 (-75.82%)
Mutual labels:  jsx

Trad

GitHub Actions Build Status

Introduction

(中文/English)

A lightweight and C based language for building user interfaces.

Trad is:

  • Base on C: Trad compiles to readable, standards-based C. Its relationship with C is like the relationship between TypeScript and JavaScript.
  • Optimized for UI: Simplify your development work with syntax features specialized around the needs of user interface creation.
  • Easy to use: Designed for C developers' usage habits, you can get started quickly without having to spend a lot of time reading complex documents.
  • Not Productive: The current version of the architecture design has not been stable and is only used for technical communication, not for production.
  • Community-driven: small size, easy to read and modify. Anyone can participate in the design of language specifications, and this project development status is affected by community activity.
  • Cross platform: Support for Linux and Windows desktop platforms, but does not support Mac OS and mobile platforms

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.

  • Core
    • Rewrite Trad's compiler
    • Basic syntax
    • Basic data type
    • Compatible with C syntax
    • Template literals (Template strings)
    • Function nesting and Closures
    • Decorator
    • await/async
    • Standard library
  • LCUI extension
    • Redesign language binding of LCUI
    • Implement the Widget.render() method
    • @UIThread decorator
  • Tool chain
    • Compiler
      • Command-line interface
      • Friendly error output
      • Line comments
    • Package manager
    • Building tool
  • Documention
    • FAQ
    • Language specification
    • Tutorial

License

Trad is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].