Getting Started with EPL¶
EPL — English Programming Language
Write code the way you think. In plain English.
1. Install EPL¶
EPL runs on Python 3.9+. Install it with pip:
Verify the installation:
2. Your First Program¶
Create a file called hello.epl:
Run it:
Output:
3. Core Language Concepts¶
Variables¶
Conditionals¶
Loops¶
Note: Count from 1 to 5
Repeat 5 times
Say "Counting..."
End
Note: Loop over a list
fruits = ["apple", "banana", "mango"]
For Each fruit in fruits
Say fruit
End
Functions¶
Classes¶
Class Animal
Function Begin takes name
Note: [Parser Error] this.name = name
End
Function speak
Say this.name + " makes a sound"
End
End
dog = New Animal("Rex")
dog.speak()
4. Use the Interactive REPL¶
The REPL lets you type and execute EPL code line by line:
Useful REPL commands:
.vars— show all defined variables.help— show available commands.exit— quit
5. Create a Web Server¶
Start server on port 8080
Route "/"
Send "Welcome to my EPL web app!"
End
Route "/hello"
Send "Hello from EPL!"
End
Note: [Parser Error] End
Run it:
6. Create a New Project¶
7. CLI Quick Reference¶
epl <file.epl> # Run a program
epl repl # Interactive REPL
epl new <name> # Create new project
epl serve <file.epl> # Start web server
epl build <file.epl> # Compile to native binary
epl check <file.epl> # Static type checking
epl fmt <file.epl> # Format source code
epl install <package> # Install a package
8. Try It in Your Browser¶
No installation needed — try EPL instantly at:
9. Next Steps¶
| Resource | Link |
|---|---|
| Official Book (PDF) | epl_book.pdf |
| Language Reference | language-reference.md |
| Tutorials | tutorials.md |
| Architecture | architecture.md |
| Package Manager | package-manager.md |
| Changelog | ../CHANGELOG.md |
10. Get Help¶
- 🐛 Bug? Open an issue
- 💡 Feature request? Request here
- ⭐ Love EPL? Star the repo on GitHub!