Elomar-Lang for VS Code
Elomar-Lang is a simple, typed
programming language with AI built in, in Arabic and English.
- Syntax highlighting for
.elo files, including Arabic names.
- Errors while you type, in English or Arabic, in the file where they
occur (also inside imported modules), with hints and related locations.
- Hover for the type of any variable, field or expression name and the
signature of functions and methods (with their effects).
- Go to Definition (F12) for variables, functions, methods, types,
enums and traits, also into imported modules.
- Find All References (Shift+F12) and Rename (F2) of variables,
functions, methods, types and enum variants, across the files of the
project. A name that is not valid, such as a keyword, is refused.
- Parameter hints while you type a call:
twice( shows
fn twice(n: Int) -> Int.
- Outline of functions, types, enums, traits and
impl blocks.
- Completion: keywords, built-ins, your functions and variables, and
fields and methods after
. (also fs., json., db., ...).
- Debugging with F5: breakpoints, step over / into / out, the call
stack, variables (lists and records open up), values in the Debug Console
(
total, student.name), and a stop where a runtime error happens.
Program output appears in the Debug Console, and input(...) reads what
you type there.
- Run button in the editor title bar,
Elomar: Run File, or
Ctrl+F5: runs the file in a terminal.
- Formatting with
elomar fmt: Format Document, and on save by default
(turn off with "[elomar]": { "editor.formatOnSave": false }).
- Snippets:
main, amain, fn, pfn, type, enum, trait,
impl, matchr, matcho, for, ife, infer, readjson.
Setup
- Install the
elomar command: download it for your system from the
latest release
and put it on your PATH (or set elomar.path).
- Install this extension: search for Elomar-Lang in the Extensions
view. It is on the
VS Code Marketplace
and, for VSCodium, Cursor, Windsurf and other editors, on
Open VSX.
- Open a folder with
.elo files. New to the language? Start with the
tutorial in English or Arabic.
Settings
| Setting |
Default |
Meaning |
elomar.path |
elomar |
The elomar executable, if it is not on PATH |
elomar.language |
auto |
en, ar, or follow VS Code's display language |
elomar.checkOnType |
true |
Check while typing; otherwise on open and save |
How it works
The extension starts the language server elomar lsp and talks to it over
standard input/output (the Language Server Protocol), sending the editor's
current text as you type. The server needs no main, so a module file can
be checked on its own. It restarts automatically if it stops. Formatting
runs elomar fmt --stdin.
بالعربية
إضافة لغة Elomar-Lang: تلوين الكود، وعرض الأخطاء أثناء الكتابة بالعربية أو الإنجليزية،
ومعلومات الأنواع عند مرور المؤشر، والانتقال إلى التعريف، والإكمال التلقائي، والتنسيق، وزر
التشغيل. ثبّت الأمر elomar من صفحة الإصدارات،
وابدأ بـالدروس. لعرض الأخطاء بالعربية اضبط
"elomar.language": "ar".
| |