A whole app in one file
جدول مهمة {
العنوان: نص
منجزة = خطأ
}
خادم دالة أضف(العنوان: نص) = مهمة.أنشئ(العنوان: العنوان)
مكون الرئيسية {
حالة الجديدة = ""
عمود {
حقل(الجديدة، تلميح: "مهمة جديدة…")
زر("أضف") { أضف(الجديدة) }
}
}
- جدول
- A database table. Ḍād creates the SQLite schema and a typed API for it.
- خادم دالة
- A function that runs on the server. The interface calls it like any local function.
- مكون
- A reactive interface component, right-to-left by default.
Principles, one keyword each
- ثابت
- Immutable by default. Values never change unless you declare them with
متغير.
- ؟
- No surprise nulls. A value that may be missing says so in its type, as in
نص؟.
- طابق
- Every case handled. The compiler rejects a match that forgets a case.
- خادم
- No fetch, no async. Server calls look local; the compiler adds the waiting.
- ،؛؟
- Arabic first. Arabic punctuation works everywhere, diacritics never break a name, and numbers stay plain 0-9.
- 39
- A small core. 39 keywords in total. Interface elements are ordinary functions.
Where it stands
- SpecificationKeywords, grammar and the Arabic-aware lexer
- Core language
dad run, the checker, programs in several files, and compiling to JavaScript
- InterfaceComponents, state and elements in
dad dev and the playground; dad build makes static sites; several pages, 22 elements, themes and forms that check their fields
- Server and dataTables in SQLite, server functions, routes,
dad dev and dad serve. Next: users and sign-in
- ToolingVS Code extension, web playground,
dad fmt and the language server
- InstallersHomebrew, winget, .deb, .rpm and a tutorial in English and Arabic
Read the full roadmap Read the specification