Update README
This commit is contained in:
parent
2595ac5bfc
commit
f20f69afa4
18
README.md
18
README.md
@ -1,6 +1,6 @@
|
|||||||
# Dust
|
# Dust
|
||||||
|
|
||||||
Dust is a data-oriented programming language and interactive shell. Dust can be used as a replacement for a traditional command line shell, as a scripting language and as a data format. Dust is fast, efficient and easy to learn.
|
Dust is a programming language and interactive shell. Dust can be used as a replacement for a traditional command line shell, as a scripting language and as a data format. Dust is fast, efficient and easy to learn.
|
||||||
|
|
||||||
A basic dust program:
|
A basic dust program:
|
||||||
|
|
||||||
@ -16,6 +16,8 @@ Dust can do two (or more) things at the same time with effortless concurrency:
|
|||||||
(output 'or will this one?'))
|
(output 'or will this one?'))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Dust is an interpreted, general purpose language with first class functions. It is *data-oriented*, with extensive tools to manage structured and relational data. Dust also includes built-in tooling to import and export data in a variety of formats, including JSON, TOML, YAML and CSV.
|
||||||
|
|
||||||
<!--toc:start-->
|
<!--toc:start-->
|
||||||
- [Dust](#dust)
|
- [Dust](#dust)
|
||||||
- [Features](#features)
|
- [Features](#features)
|
||||||
@ -23,22 +25,18 @@ Dust can do two (or more) things at the same time with effortless concurrency:
|
|||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
- [The Dust Programming Language](#the-dust-programming-language)
|
- [The Dust Programming Language](#the-dust-programming-language)
|
||||||
- [Declaring Variables](#declaring-variables)
|
- [Declaring Variables](#declaring-variables)
|
||||||
- [Integers and Floats](#integers-and-floats)
|
|
||||||
- [Lists](#lists)
|
- [Lists](#lists)
|
||||||
- [Maps](#maps)
|
- [Maps](#maps)
|
||||||
- [Tables](#tables)
|
- [Tables](#tables)
|
||||||
- [Functions](#functions)
|
- [Functions](#functions)
|
||||||
- [Empty Values](#empty-values)
|
|
||||||
- [Implementation](#implementation)
|
- [Implementation](#implementation)
|
||||||
- [Contributing](#contributing)
|
|
||||||
<!--toc:end-->
|
<!--toc:end-->
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Simplicity: Dust is designed to be easy to learn and powerful to use, without compromising either.
|
- Simplicity: Dust is designed to be easy to learn.
|
||||||
- Speed: Dust is built on [Tree Sitter] and [Rust] to prioritize performance and correctness.
|
- Speed: Dust is built on [Tree Sitter] and [Rust] to prioritize performance and correctness.
|
||||||
- Data format: Dust is data-oriented, so first and foremost it makes a great language for defining data.
|
- Data format: Dust is data-oriented, making it a great language for defining data.
|
||||||
- Pipelines: Like a pipe in bash, dust features the yield `->` operator.
|
|
||||||
- Format conversion: Effortlessly convert between dust and formats like JSON, CSV and TOML.
|
- Format conversion: Effortlessly convert between dust and formats like JSON, CSV and TOML.
|
||||||
- Structured data: Dust can represent data with more than just strings. Lists, maps and tables are easy to make and manage.
|
- Structured data: Dust can represent data with more than just strings. Lists, maps and tables are easy to make and manage.
|
||||||
|
|
||||||
@ -49,8 +47,8 @@ Dust is an experimental project under active development. At this stage, feature
|
|||||||
To get help with the shell you can use the "help" tool.
|
To get help with the shell you can use the "help" tool.
|
||||||
|
|
||||||
```dust
|
```dust
|
||||||
help # Returns a table will all tool info.
|
(help) # Returns a table will all tool info.
|
||||||
help {"random"} # Returns a table with info on tools in the specified group.
|
(help "random") # Returns a table with info on tools in the specified group.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@ -92,7 +90,7 @@ Note that strings can be wrapped with any kind of quote: single, double or backt
|
|||||||
|
|
||||||
### Lists
|
### Lists
|
||||||
|
|
||||||
Lists are sequential collections. They can be built by grouping values with square brackets. Commas are optional. Values can be indexed by their position to access their contents. Their contents can be indexed using dot notation with an integer. Dust lists are zero-indexed.
|
Lists are sequential collections. They can be built by grouping values with square brackets. Commas are optional. Values can be indexed by their position using dot notation with an integer. Dust lists are zero-indexed.
|
||||||
|
|
||||||
```dust
|
```dust
|
||||||
list = [true 41 "Ok"]
|
list = [true 41 "Ok"]
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit c6ec1ff6ea51ce28ee465f9c230e2580fab4c437
|
Subproject commit 0b6c6b7e25e137c8d5ad09d19584d028a371fd16
|
Loading…
Reference in New Issue
Block a user