mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed empty inputs breaking the interactive repl
Also tweaked README.md and CONTRIBUTING.md
This commit is contained in:
@@ -23,7 +23,11 @@ This repository holds the reference implementation for Toy version 2.x, written
|
||||
# Syntax
|
||||
|
||||
```toy
|
||||
print 42; //print is a built-in keyword
|
||||
//print is a built-in keyword, that can handle complex expressions
|
||||
print 6 * 7;
|
||||
|
||||
//strings can be concatenated with the .. operator
|
||||
print "Hello" .. "world!";
|
||||
|
||||
//more examples to be added as the features are implemented
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user