mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 06:44:07 +10:00
Also fixed a minor bug with printing, and removed the ability to configure the parser. Added and updated QUICKSTART.md as a quick way to get people started. There's some broken scripts under 'scripts/' that require functions to work properly.
18 lines
233 B
Plaintext
18 lines
233 B
Plaintext
//shadowing
|
|
var answer = 42;
|
|
print answer; //42
|
|
{
|
|
var answer = 7;
|
|
print answer; //7
|
|
}
|
|
print answer; //42
|
|
|
|
//rebinding
|
|
var question = 42;
|
|
print question; //42
|
|
{
|
|
var question = question;
|
|
print question; //42
|
|
}
|
|
print question; //42
|