EuskoPy

From Esolang
Jump to navigation Jump to search
BasquePy
Paradigm(s) imperative
Designed by Muxutruk
Appeared in 2025
Computational class Turing complete
Major implementations [[1]]
Influenced by Python, Basque
File extension(s) .eus

BasquePy is a simple esoteric programming language (esolang) that transpiles to Python, written in grammatically correct Basque. The source code is available on GitHub.

Syntax

BasquePy only supports integers and floats as values.

Function Calls

Since Basque is a subject-object-verb (SOV) language, the verb (function name) should go last in function calls. The only available function is print (in Basque: inprimatu):

 (x)inprimatu

Expressions

Expressions are formed with two operands and one operator, such as *, /, +, and so on. Comparators also follow this structure.

Assignments

Assignments can be done with or without arithmetic operations using the following syntax:

 [VAR] [VALUE] (OP VALUE) dela ezarri;

For example:

 n 29 dela ezarri;
 lehena 1 + 5 dela ezarri;

For Loops

BasquePy supports for loops using a range:

 [VAR] bakoitzeko [VALUE/VARIABLE] eta [VALUE/VARIABLE] artean {
     [BODY]
 }

Example usage:

 i bakoitzeko 1 eta 52 artean {
 }
 i bakoitzeko 0 eta x artean {
 }

If Statements

Conditional statements require a comparison, where the left side is either a variable, number, or expression, followed by a comparator such as ==, and then the right side.


   x == 10 bada {
       (x)inprimatu
   }
   x + 5 == 15 bada {
       (x)inprimatu
   }
   x + 5 == 15 + 5 bada {
       (x)inprimatu
   } bestela {
       (x)inprimatu
   }

BasquePy does not support elif statements, but they can be avoided using nested if statements.

External Links