From 02864c8c29aee80d59cbd7251046f77a3e8e4093 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 31 Dec 2024 15:17:23 +0100 Subject: lexer --- test/test.mnml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/test.mnml (limited to 'test') diff --git a/test/test.mnml b/test/test.mnml new file mode 100644 index 0000000..9659081 --- /dev/null +++ b/test/test.mnml @@ -0,0 +1,36 @@ +const henshin: integer = 2 // comment +// next comment +var ply: string = "abc" +ply = "way cooler!!" + +const new: integer = henshin + 5 * 10 + +const main: function = (input: string or integer): void { + const hello: string = input + " world!" + const bye: string = "bye!" + + return hello + " " + bye +} + +main()/* + * mlc +*/ + +main("pipe1!") => print($) + +var mls: string = "alphabet +ende +gelände" + +const array: [integer] = [1, 2, 3] +const map: [string][string or integer or bool] = [ + "first" = 1 <= 2, + "second" = "two", + "third" = "3", + "fourth" = 4 > 3, + "fifth" = (): void { + return "5." + }, + "sixth" = 20_000, + "seventh" = 20.02, +] -- cgit v1.2.3