mighty

The mighty programming language, compiler and tools (WIP)
Log | Files | Refs

commit 3142ed49e9e825200441d1aae18fee6433552d30
parent 2a6dc32ce6885e37e811b8f4032acd773483bfde
Author: citbl <citbl@citbl.org>
Date:   Mon, 25 May 2026 21:32:53 +1000

changes to language

Diffstat:
Mmtcl/idea.mty | 3+--
Mmtcl/lexer.lua | 2+-
Mmtcl/target.mty | 2+-
3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/mtcl/idea.mty b/mtcl/idea.mty @@ -1,9 +1,8 @@ - use std fx main(int a, int b) int :: print("hello") - ret 0 + return 0 end fx main :: print("hello world") end diff --git a/mtcl/lexer.lua b/mtcl/lexer.lua @@ -125,7 +125,7 @@ local keywords = { ["pub"] = true, ["fx"] = true, ["fn"] = true, - ["ret"] = true, + ["return"] = true, } Token = { kind = TK.IDK, lexeme = "", file = "", line = 0, col = 0 } diff --git a/mtcl/target.mty b/mtcl/target.mty @@ -2,5 +2,5 @@ use std fx main(int a, int b) int :: print("hello") - ret 0 + return 0 end