Much of this document is still unfinished. Read at your own risk.
- Every statement in MTLang will occupy a
Chunk
. - Each
Chunk
will correspond to a line of code inGDScript
. - All newlines and whitespace are ignored in MTLang.
- Chronology is determined from the literal call sequence.
func_name([args])
orfunc_name!
variable_name<[type = 'Variant']> = value
asdf<int> = getRandInt!
class class_name<[extends]> { [...] }
make object_name([args])
x<Button> = make!
compiles into:var x:Button = Button.new();
venue packed_scene
compiles into:get_tree().change_scene_to_packed(packed_scene);
summon packed_scene
compiles into:get_tree().current_scene.add_child(packed_scene);