summaryrefslogtreecommitdiff
path: root/test/test.mnml
blob: 9659081b33c6f03dbfbda14f26ca3a24fb818052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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,
]