Skip to content

Commit

Permalink
Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy committed Dec 6, 2019
1 parent a6a440c commit b3c0d20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GUIDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tealang guide

Tealang translates all (except `mulw`) own constructions to corresponding **TEAL** instructions
Tealang translates all own constructions to corresponding **TEAL** instructions
so that there is almost one-to-one mapping between statements in both languages.

Refer to [TEAL documentation](https://developer.algorand.org/docs/teal) for details.
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Teal Language
# Tealang

High-level language for Algorand Smart Contracts at Layer-1 and its low-level **TEAL** language.
The goal is to abstract the stack-based **TEAL** VM and provide imperative Go/JS/Python-like syntax.
Expand Down Expand Up @@ -81,10 +81,14 @@ import stdlib.const
```sh
tealang -l '(txn.Sender == "abc") && global.MinTxnFee > 2000' -o mycontract.tok
```
* Stdin to Stdout
* stdin to stdout
```sh
cat mycontract.tl | tealang -s -r - > mycontract.tok
```
* Dryrun / trace
```sh
tealang -s -c -d '' examples/basic.tl
```

Checkout [syntax highlighter](https://github.com/pzbitskiy/tealang-syntax-highlighter) for vscode.

Expand All @@ -107,7 +111,7 @@ Checkout [syntax highlighter](https://github.com/pzbitskiy/tealang-syntax-highli
popd
```

### Build
### Build and test
```sh
make go
```
Expand Down

0 comments on commit b3c0d20

Please sign in to comment.