Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/front/runs/longnames.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / front / runs / longnames.om` 29 lines ยท 998 bytes Raw Blame History 1 note long names (9 to 63 bytes) for a scalar, a constant, a parameter, a local array, a global, a text and a loop 2 note counter: front-ir looks each up by the word fe_tok2 interns for it. Stdout "long names"; status 57. 3 const elements_count ulong 6 4 global running_totals ulong 4 5 text greeting_line "long names\n" 6 7 fn sum_of_values values_in view ulong 6 to ulong 8 accumulated_sum = ulong 0 9 for index_value ulong elements_count 10 accumulated_sum = add accumulated_sum get values_in index_value 11 end 12 ret accumulated_sum 13 end 14 15 fn main to int 16 local_numbers = new ulong elements_count 0 17 for position_now ulong elements_count 18 put local_numbers position_now mul position_now 3 19 end 20 put running_totals 1 sum_of_values local_numbers 21 written_bytes = write 1 greeting_line 0 len greeting_line 22 first_letter_seen = ulong get greeting_line 0 23 if ne first_letter_seen 108 24 ret 2 25 end 26 accumulated_total = add get running_totals 1 ulong written_bytes 27 accumulated_total = add accumulated_total 1 28 ret int accumulated_total 29 end