Skip to content
An open source cross-platform programming language focused on engineering.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
book-en
book-zh
.gitignore
Compare.md
LICENSE
README.md
demo.lite
example.lite
grammar_preview.lite

README.md

The Lite Programming Language

996icu

Lite is an open source cross-platform programming language focused on engineering.

The language is designed to be simple, readable, and understandable.

By removing keywords, reducing grammatical features, and unifying expression specifications, the language can effectively reduce the burden of reading and writing, allowing users to focus on solving problems.

This is the main source code repository for Lite. It contains the compiler, and documentation.

Features

  • Well designed grammar, easy to write and read.
  • The rules are clear and uniform, in line with intuition.
  • Currently supports output to C#/Go/TypeScript/Kotlin, and with their resources, we can already use this language in a very wide range of scenarios.
  • Output to LLVM will be supported in the future to support a more comprehensive scenario.

Getting Started

Quick Preview

main : (->) {
    print("Hello, world!")
    greetings = get_greetings("love lite!")
    (index)value @ greetings {
        index ? 0 {
            print(value)
        } 1 {
            print(value + ", 世界!")
        } _ {
            print(value + ", world!")
        }
    }
}

get_greetings : (first str -> result [;str]) {
    <- first + {"你好"; "Hola"; "Bonjour"
                "Ciao"; "こんにちは"; "안녕하세요"
                "Cześć"; "Olá"; "Здравствуйте"
                "Chào bạn"}
}

Roadmap

  1. 2017.07 ~ 2018.03
    1. Design syntax.
    2. Completed translator to C# compiler.
  2. 2018.03 ~ 2019.09
    1. Complete the implementation of bootstrap.
    2. Add standard library.
    3. Improve grammar to achieve grammatical stability.
  3. 2019.09 ~ 2021.06
    1. Rewrite all Xylaga projects using Lite.
    2. Compile to more languages, including Go/Kotlin/JavaScript/LLVM.
    3. Improved compilation capabilities and support for language server protocols.

Compare

Compare with C#, Go, Kotlin, Swift, Python. Read detail from Here.

Source Code

C#

Go

TypeScript

Kotlin

You can’t perform that action at this time.