A browser-based IDE for AbuLang that works on Windows, Linux, and any device with a web browser.
Windows:
cd web
python serve.pyLinux:
cd web
python3 serve.pyThe browser will open automatically at http://localhost:8000
Simply open index.html in your web browser:
- Double-click
index.html - Or drag it into your browser
If you have VS Code with Live Server extension:
- Right-click
index.html - Select "Open with Live Server"
- β No Installation Required - Runs entirely in the browser
- β Cross-Platform - Works on Windows, Linux, macOS, Android, iOS
- β Offline Support - Works without internet (after first load)
- β Mobile Friendly - Responsive design for phones and tablets
- β Code Examples - Built-in examples to get started
- β Save/Load - Save your code in browser storage
- β Keyboard Shortcuts - F5 to run, Ctrl+S to save
show- Display outputplus(),minus(),multi(),divid()- Math operationsexpon(),modul()- Power and modulostrip(),lower(),upper(),lengt()- String operations- Variables and assignments
=:Inverse walrus operatorcheck/ifstatementsloopf/forloopswhileloopsbreak,continue
ask- Uses browserprompt()(blocks execution)- File operations - Not available in browser
- Import libraries - JavaScript only
- Python libraries (math, statistics, etc.)
- File I/O (readf, write)
- System commands (execa, listd)
- GUI (tkinter, pygame)
show "Hello, World!"
x = 10
y = 5
result = plus(x, y)
show result
loopf i in range(5):
show i
y = 6
x =: 12
# Shows: x>y 12
F5- Run codeCtrl+Enter- Run codeCtrl+S- Save codeTab- Insert 4 spaces (in editor)
- Push the
web/folder to GitHub - Go to Settings > Pages
- Select branch and
/webfolder - Your IDE will be at:
https://username.github.io/repo/
- Drag the
web/folder to Netlify Drop - Get instant URL
- Optional: Configure custom domain
cd web
vercelEdit style.css:
:root {
--primary: #3498db; /* Change primary color */
--secondary: #2c3e50; /* Change secondary color */
}Edit app.js:
const examples = {
myexample: `# My Example
show "Hello!"`,
};index.html- Main HTML structurestyle.css- Styling and themeabulang-interpreter.js- AbuLang interpreterapp.js- Application logicserve.py- Development servermanifest.json- PWA configuration
- Check browser console (F12) for errors
- Make sure syntax is correct
- Try the examples first
- Make sure port 8000 is not in use
- Try a different port:
python serve.py 3000 - Check firewall settings
- Hard refresh:
Ctrl+F5(Windows) orCmd+Shift+R(Mac) - Clear browser cache
- Check browser console for errors
Create sw.js:
self.addEventListener('install', (e) => {
e.waitUntil(
caches.open('abulang-v1').then((cache) => {
return cache.addAll([
'/',
'/index.html',
'/style.css',
'/app.js',
'/abulang-interpreter.js'
]);
})
);
});Register in index.html:
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js');
}Same as AbuLang main project.
Contributions welcome! To add features:
- Edit
abulang-interpreter.jsfor language features - Edit
app.jsfor UI features - Edit
style.cssfor styling - Test in multiple browsers