Files
compiler-explorer/examples/mojo/default.mojo
Rob Parolin a0b48fb7e0 Add Mojo compiler (#7692)
This PR adds support for the Mojo programming language.

Explicitly tested viewing the generated assembly, LLVM IR, and running
the generated executable.
2025-05-21 13:53:05 -05:00

3 lines
41 B
Mojo

fn square(n: Int) -> Int:
return n * n