about summary refs log tree commit diff stats
path: root/apps/ex1.mu
blob: 41609fac35066ea693c28985f90a18fee0d84498 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# First example: return the answer to the Ultimate Question of Life, the
# Universe, and Everything.
#
# To run:
#   $ ./translate_mu apps/ex1.mu
#   $ ./a.elf
# Expected result:
#   $ echo $?
#   42

fn main -> _/ebx: int {
  return 0x2a  # Mu requires hexadecimal
}