Remix.run Logo
Rapira (Рапира) – Soviet programming language interpreter(github.com)
4 points by begoon 3 days ago | 2 comments
gus_massa 2 days ago | parent [-]

It feels like Pascal in Cyrillic. Autotranslation, with a little manual correction, but I can't fix КНЦ (autotranlated to KNC):

  FUNC FACT (N);
     NAME: R;
     1 -> P;
     FOR I FROM 1 TO N ::
        R * I -> R
     ALL
  RES: R
  KNC;

  FOR N FROM 0 TO 6 ::
     ? "FACT(", N, ") = ", FACT(N)
  ALL;
gus_massa a day ago | parent [-]

Gemini says:

> In programming, КНЦ is a Russian abbreviation used in educational algorithms and certain programming dialects (such as Rapira) that translates to "End of Cycle" (Конец Цикла). It acts as a closing keyword for loop structures, similar to end, next, or } in other languages.