Manual

A LaiRu language and standard-library reference organized by category, subcategory, and individual callable page.

Getting Started

How LaiRu source is called, how templates mix code with output, and how projects are organized.

Syntax and Control Flow

Literals, variables, operators, captures, methods, blocks, query expressions, and threading syntax.

Types and Object Model

Core values, custom types, traits, tags, reflection, members, inheritance, and object conventions.

Strings and Text

String construction, Unicode inspection, searching, mutation, escaping, encoding, and iteration.

Bytes and Encoding

Binary data, byte streams, charset conversion, digests, Base64, hex, URL, and SQL byte encodings.

Math and Numbers

Integer and decimal constructors, arithmetic helpers, bit operations, rounding, random values, and trigonometry.

Regular Expressions

ICU regular expression objects, string pattern helpers, captures, replacements, splitting, and pattern iteration.

Files and Directories

File objects, directory objects, standard streams, path inspection, reads, writes, permissions, and traversal.

Databases

inline actions, records, fields, result sets, datasource helpers, SQL data sources, ODBC, and FileMaker.

Processes and Logging

Logging levels and destinations, os_process, sys_process, child I/O, exit codes, and command execution.

Errors and Diagnostics

Current errors, failures, handlers, protect blocks, aborting, stack inspection, and defensive examples.

Server Configuration

Document roots, LaiRu HTTP serving, LaiRu FPM, FastCGI parameters, nginx, Apache, systemd, and deployment defaults.