English-like syntax
Write code that reads naturally. Commands such as
Set, Say, If,
and While are immediately understandable.
Engli is a serious, general-purpose, Turing-complete programming language designed to read like English — without sacrificing real programming power.
Set name to "World".
Say "Hello, {name}.".
Engli keeps the syntax readable while providing the building blocks you'd expect from a real programming language.
Write code that reads naturally. Commands such as
Set, Say, If,
and While are immediately understandable.
This isn't a toy syntax. Engli supports the control flow, data structures, functions, and runtime features needed for general-purpose programming.
Define reusable functions with readable declarations, arguments, return values, and normal program structure.
Work with lists, maps, objects, custom types, and enumerations directly in the language.
Engli can work with files, terminal commands, HTTP, JSON, and imported modules.
Start tasks and wait for them to finish using readable concurrency primitives.
Engli uses a deterministic grammar while keeping its programs approachable. You shouldn't need to decode punctuation before understanding what the program does.
Set name to "AB".
Set age to 20.
If age is greater than or equal to 18:
Say "Hello, {name}.".
But underneath, Engli has a lexer, parser, semantic analyzer, interpreter, runtime, and standard library.
Set x to 10.
Add 5 to x.
Say x.
15
Engli's syntax may be friendly, but its feature set goes far beyond basic examples.
Split programs into multiple files and import functionality where you need it.
Parse HTTP responses and other JSON data directly from Engli programs.
Send HTTP requests and work with their responses from within the language.
Read files and interact with data stored on disk.
Execute terminal commands and store their results in Engli variables.
Use structured try/error handling for programs that need to deal with failures.
Engli follows a traditional language implementation pipeline, from source code all the way to execution.
Install Engli, write a program, and run it directly.
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -e .
$ engli hello.engli
Hello, World.
$ engli repl
Engli REPL 1.0.0
> Set x to 10.
> Add 5 to x.
> Say x.
15
Explore the source, read the documentation, or start writing Engli programs.