Hazer Language Support for VS Code
🐍 Turkish-based Python syntax — VSCode extension for the Hazer language.
What is Hazer?
Hazer is a deep-level modification of CPython (3.15+) that allows writing Python code with Turkish keywords. It is not a simple search-and-replace script — it directly modifies Python's PEG Parser, Lexer, and Grammar layers. Both Turkish and English syntax are supported simultaneously (bilingual).
işlev kontrol_et(sayi) ise
eğer sayi > 0 ve degil sayi == 10 ise
döndür "Geçerli"
değilse ise
döndür "Geçersiz"
ozyinele eleman içinde [1, 5, 10] ise
yazdir(kontrol_et(eleman))
Features
- ✅ Syntax highlighting for all Turkish keywords
- ✅ Bilingual support (Turkish + English simultaneously)
- ✅ Tab snippets for common patterns
- ✅ Auto-closing brackets and strings
- ✅ Auto-indent after
ise
- ✅
.hazer and .py file support
Installation
From Marketplace
Search for Hazer in the VSCode Extensions panel and click Install.
Manual (.vsix)
code --install-extension hazer-<version>.vsix
Snippets
| Prefix |
Expands to |
işlev |
Function definition |
eğer |
If statement |
eğerdeğilse |
If-else statement |
iken |
While loop |
ozyinele |
For loop |
dene |
Try-except |
denenihyet |
Try-except-finally |
birlikte |
With statement |
eslestir |
Match-case |
döndür |
Return statement |
yazdir |
Print function |
girdi |
Input function |
aralik |
Range function |
temin |
Import statement |
teminmatematik |
Import math |
teminrastgele |
Import random |
anaprogram |
Main guard |
Keyword Reference
Full keyword list available at SYNTAX.md.
Building Hazer
To use .hazer files, you need the Hazer interpreter:
git clone https://github.com/c0mblasterR/custom-syntax-python
cd custom-syntax-python
./configure
make regen-pegen
make -j$(nproc)
./python my_file.hazer
License
MIT © c0mblaster