lex variables
variables are done with a sigil now. I picked the @ symbol because I can find it on the keyboard without looking. The $ is a little too far away. Also php is terrible.master
parent
9591212531
commit
bbc5e45d13
@ -0,0 +1,8 @@
|
||||
key_one: this is the first value
|
||||
|
||||
key_two: @key_one
|
||||
|
||||
@variable_key: that key is not exported, it's only valid as a variable inside of moon itself
|
||||
|
||||
key_three: @variable_key
|
||||
|
@ -0,0 +1,12 @@
|
||||
{t_name key_one}
|
||||
{t_object_separator :}
|
||||
{t_string this is the first value}
|
||||
{t_name key_two}
|
||||
{t_object_separator :}
|
||||
{t_variable key_one}
|
||||
{t_variable variable_key}
|
||||
{t_object_separator :}
|
||||
{t_string that key is not exported, it's only valid as a variable inside of moon itself}
|
||||
{t_name key_three}
|
||||
{t_object_separator :}
|
||||
{t_variable variable_key}
|
Loading…
Reference in New Issue