Inuktitut

From Esolang
Jump to navigation Jump to search

ᑖᓐᓇ ᑕᒻᒪᖅᓯᒪᔪᖅ ᑕᐃᔭᐅᔾᔪᓯᖅ. ᑕᒻᒪᖓᙱᑦᑐᖅ ᑕᐃᒎᓯᖓ ᐃᓄᒃᑎᑐᑦ.

↑Inuktitut Version

The title of this article is not correct because of technical limitations. The correct title is actually ᐃᓄᒃᑎᑐᑦ.

ᐃᓄᒃᑎᑐᑦ is a language based on INUKTITUT.

Syntax

Caption text
ᐃᓄᒃᑎᑐᑦ Pseudo code
ᐅᖃᕐᓗᑎᑦ (comment) print(comment)
ᓈᓚᒡᓗᑎᑦ (comment) ᐱᖃᑎᖃᕐᓗᓂ (prompt) input(comment, __prompt)
ᐃᒪᐃᑉᐸᑦ(expression){} if(expression){}
ᐊᓯᐊ{} else{}
ᐊᓯᐊ ᐃᒪᐃᑉᐸᑦ(expression){} elif(expression){}
ᑕᐃᒪᐃᓕᐅᒃᑲᓐᓂᕐᓗᑎᑦ 10 ᖏᖅᓱᕐᓗᑎᑦ{} for (i in range(10))
ᑕᐃᒪᐃᓕᐅᒃᑲᓐᓂᕐᓗᑎᑦ ᑭᓯᐊᓂ (expression) ᓱᓕᙱᑉᐸᑦ while(expression)
ᓇᓗᓇᐃᖅᓯᓂᖅ A ᐃᒪᓐᓇ (type) def a -> type
ᐋᖅᑭᒃᓯᓗᑎᑦ A ᒥᑦ value ᒧᑦ a=value
ᐊᒻᒪᓗ &&
ᐅᕝᕙᓘᓐᓃᑦ ||
ᐋᒃᑲ !
ᑎᒡᓕᒐᖅ int
ᓴᒡᓗᔪᑦ float
ᖃᓄᐃᑦᑑᓂᖓ char
ᐊᒥᕕᖅ str
ᕘᓚᐃᓐ bool
ᖃᓄᐃᑦᑑᓂᖓ void
ᑮᓇᐅᔭᙳᖅᑎᑦᑎᔾᔪᑎ bin
etc. etc.

Program

Hello, world

ᐅᖃᕐᓗᑎᑦ ("Hello, world!")

A+B

ᓇᓗᓇᐃᖅᓯᓂᖅ A, B, C ᐃᒪᓐᓇ int
ᓈᓚᒡᓗᑎᑦ (A)
ᓈᓚᒡᓗᑎᑦ (B)
ᐋᖅᑭᒃᓯᓗᑎᑦ C ᒥᑦ A+B ᒧᑦ
ᐅᖃᕐᓗᑎᑦ (C)