Logo Lanfrica

maria-mes/Amharic_Programming_Language

Domaine:

natural language processingeducation

Type de record:

software
Créateur:
mar
Hôte:
Introduction The Amharic Programming Language (APL) is a beginner‑friendly language designed to make programming more intuitive for Ethiopian learners. By replacing English keywords with Amharic equivalents, APL lowers the entry barrier for those new to coding and provides a culturally relevant learning experience. Keywords and Meanings This programming language uses Amharic‑based keywords to make programming more intuitive for beginners. Amharic Keyword Meaning in English Purpose ቁጥር variable (number) Declare variables ከሆነ if Conditional statement ያለበለዚያ else Alternative condition እስከ while Loop structure ተግባር function Function definition ተመለስ return Return value from function አትም print Output statement These keywords are designed to reduce the learning barrier for programmers who are not familiar with English programming syntax. ✨ Core Features 🔑 Keywords | Amharic Keyword | English Meaning | Purpose | | --- | --- | --- | | ቁጥር | variable (number) | Declare variables | | ከሆነ | if | Conditional statement | | ያለበለዚያ | else | Alternative condition | | እስከ | while | Loop structure | | ተግባር | function | Function definition | | ተመለስ | return | Return value | | አትም | print | Output statement | 2. Syntax Rules The language follows a simple and structured syntax designed for readability. 2.1 Variables Variables are declared using the keyword ቁጥር. ቁጥር x = 10 2.2 Arithmetic Expressions Supports basic mathematical operations: Addition + Subtraction - Multiplication * Division / ቁጥር y = x + 5 * 2 2.3 Conditional Statements If-else statements use braces {} for block structure. ከሆነ x > 5 { አትም("Greater") } ያለበለዚያ { አትም("Smaller") } 2.4 Loops The language supports a while loop using the keyword እስከ. እስከ x <= 5 { x = x + 1 } 2.5 Functions Functions are defined using ተግባር and return values using ተመለስ. ተግባር ደምር(a, b) { ተመለስ a + b } ቁጥር ውጤት = ደምር(7, 8) አትም(ውጤት) 15 2.6 Function Calls ቁጥር ውጤት = ደምር(5, 3) 3. Example Programs 3.1 Basic Program (Variables + Math) …

Languages