Program Shape
Entry point
on the iron throne:Comments
// ignored until the end of the lineBlocks
Indent statements under a headerWrite `.mv` files with readable royal commands, then run them from a terminal with midv example.mv.
on the iron throne:// ignored until the end of the lineIndent statements under a header423.14"Fire and Blood"aye / nay'D'empty return valuespeak expressionname speaks for inputname is a scroll with ""if condition:else:the realm marches 5 times:while power < 30:we declare add with x, y ->council says:return x + yadd with 5, 7+ - * /> < == !=-value !condition(x + y)we declare greet with name ->
council says:
return "Valar Dohaeris, " + name
on the iron throne:
name is a scroll with ""
name speaks for input
the realm marches 2 times:
speak greet with name