Skip to content
An open source cross-platform programming language focused on simplicity.
Branch: master
Clone or download
Kulics
Kulics fix bug
Latest commit 4c9aa95 Apr 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Compiler fix bug Apr 17, 2019
Library
book-en
book-zh update doc; Apr 16, 2019
.gitignore
Compare.md remove invariable feature; Mar 25, 2019
LICENSE Initial commit Mar 2, 2018
README.md
demo.xs fix code; Apr 17, 2019
example.xs update code; Apr 17, 2019
grammar.preview

README.md

The Xs Programming Language

996icu

Xs is a focus on simple, open source, cross-platform programming language.

The language is designed to improve reading and writing efficiency, reduce the burden of grammar, and allow users to focus on solving problems.

So Xs discards the cumbersome features, retains the most versatile features, and elegantly expresses logic with minimal grammar.

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

Features

  1. Well-designed grammar, easy to write and read.
  2. Rules are clear and uniform, intuitive.
  3. With the support of. NET platform, we can use this language in a very wide range of scenarios with the help of. NET framework and library resources.

Getting Started

Quick Preview

# export namespace
\HelloWorld <- {
    System # import namespace
}

# main function
Main() -> () {
    # list
    greetings := {"Hello", "Hola", "Bonjour",
                "Ciao", "こんにちは", "안녕하세요",
                "Cześć", "Olá", "Здравствуйте",
                "Chào bạn", "您好"}
    # for-each  
    @ item <- greetings {
        # match
        ? item -> [ 0 <= 8 ] {
            Prt(item) # call function
        } _ {
            # lambda
            Prt( greetings.Filter( {it -> it.Len > 4} ) )
            <- @
        }
    }
}

Roadmap

  1. 2017.07 ~ 2018.03
    1. Design syntax.
    2. Completed translator to C # compiler.
  2. 2018.03 ~ 2019.03
    1. Add standard library.
    2. Improve grammar to achieve grammatical stability.
  3. 2019.03 ~ 2021.03
    1. Rewrite all xylaga projects using Xs.
    2. Complete a mature compiler, Compile to CIL or LLVM or JVM.
    3. Improved compilation capabilities and support for language server protocols.

Compare

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

You can’t perform that action at this time.