Skip to content

Repository files navigation

Dust Build StatusGitter room

Dust is an open source programming language written in C# and .NET Core.

Introduction

Dust is a simple and easy-to-understand programming language inspired by many other programming languages such as C#, Go, Rust, Swift, Elixir, F#, Dart and so on.

If you want to take a more in-depth look into the development process, check out our Trello board.

Contributions are more than welcome even if you don't have any experience in programming language design, we're all here to learn. To learn more, see Contributing.

If you have any suggestions, questions regarding contributing, syntax or anything else, please ask away in our Gitter room.

Syntax

Planned syntax for a console hello world:

letfnmain() {
println("Hello World") // Print text and add a new line.println("from Dust!")
}

Properties (variables):

letimmutable=0+1+2+3// Immutable property with initializerletmutmutable=3+2+1+0// Mutable property with initializer

Functions:

letfnaFunction(mutmutableParam, immutableParam) { // A function with a mutable and immutable parameter. Returns their summutableParam=12// Mutate the mutable parameterletresult=mutableParam+immutableParam// Add them and store the sum into 'result' propertyreturnresult// Return the result (sum)
}

More examples will be added soon but for now you can take a look at this obsolete syntax mock just to get an overview of other planned features and concepts.

Contributing

As I said above contributions are more than welcome even if you don't have any experience in programming language design. If you're willing to contribute, take a look at these issues.

Copyright

This project is licensed under MIT license.

About

A programming language written in C# that will compile to IL. (still very WIP)

Topics

Resources

Stars

24 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages