Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jweinst1 committed Jun 22, 2018
1 parent ad92c13 commit d0ef478
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ The Flow-based Programming Language
- [Syntax Errors](#syntax-errors)
- [Types](#types)
- [None](#none)
- [Bools](#bools)
- [Numbers](#numbers)
- [Commands](#commands)
- [out](#out)
- [push](#push)
Expand Down Expand Up @@ -228,6 +230,31 @@ wind> push 5 -> map + True False | * True -> out
[ 6 ]
```

#### Numbers

In `Wind`, numbers represent numerical data. They are implemented as 64-bit, double precision floating point numbers. Yet, in printed representation, they are represented as either integers, or floats, depeneding on their value.

```
wind> push 5 5 5 -> out
[ 5 5 5 ]
```
Yet if numbers aren't convertible to integers, they will be printed differently:

```
wind> push 5 5 5 -> out
[ 5 5 5 ]
wind> map / 60 -> out
[ 0.083 0.083 0.083 ]
wind> map ** 0.3 -> out
[ 0.475 0.475 0.475 ]
```

#### Strings

Strings in `Wind` don't have too much functionality right now, but a lot more is planned for the future. Mentioned elsewhere in this guide is using strings as paths to load and save `.bwind` files.

Strings are always bounded by `"` double quotes.

### Commands

The `Wind` language uses an effecient set of commands to manipualte and process a flow of data. Commands are named words that appear before an arbitrary sequence of arguments.
Expand Down

0 comments on commit d0ef478

Please sign in to comment.