Turkey's first programming language of its kind
Throw it, run it.
A server-side language with no build step. lexer serve reads the source, parses it and runs it directly.
macOS · Linux
curl -fsSL https://lexer.gurerlabs.com/install.sh | sh
No build step
There is deliberately no build and no run. lexer serve reads the source, parses it and runs it directly; with --watch the server shuts down gracefully and comes back up every time you save the file.
package merhaba
use http_server, html_document
$app = new http_server
$doc = new html_document
$doc.title = 'Merhaba'
$doc.body.add(`<p>Merhaba Dünya</p>`)
with $app
.document.add($doc)
.listen({port: 3000})
end withlexer serve merhaba.lexer --watchGetting started
CLI
Language
- Syntax File layout, naming rules, blocks, switch and operators.
- Types and variables Type inference, annotations, nullables and constants; the type list.
- Classes and modules static and dynamic classes, module, self, and importing files with use.
- Error handling try / catch / finally, $e.type, and the signals that are not caught.
Server
- Routing $app.routes.add, patterns, parameters and responding through $res.
- Document and layout html_document, shared layouts, ${children}, $page and static files.
- Request and response http_request, form and JSON bodies, headers, cookies and isolation.
- Calling other services http_client for payment, shipping and webhook APIs; result versus error.