interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / si / mcp / data / examples / om2_layout.om

15 lines · 320 bytes Raw Blame History
1om2
2note an external byte layout: fields at fixed offsets with a byte order, over a uchar array of SIZE bytes
3layout hdr 6
4field magic ushort at 0 big
5field size uint at 2 little
6end
7fn setc c edit hdr to void
8put c magic 0x4f4d
9put c size 258
10end
11fn main to int
12c = new uchar 6 0
13setc c
14ret int add get c 0 get c 2
15end