LM lmscript.io Examples
Runnable .lms Downloads

Downloadable LMScript & LMCode Scripts

Every script listed below is statically checked with lmscript --check as part of the lmscript.io site verification pipeline.

1. AWS S3 + CloudFront + Route 53 (lmctl-ai/lmaws) & Browser Testing (lmctl-ai/lmwebtest)

AWS Stack · lmaws

setup-lmscript-io.lms

Full Route 53 + ACM TLS certificate + S3 bucket + CloudFront Origin Access Control (OAC) & distribution + IAM policy linter for lmscript.io.

S3 Publisher · lmaws

deploy-site.lms

Multi-file S3 static website publisher with SHA-256 checksums, explicit Content-Type, Cache-Control, and ledger receipts.

Browser Suite · lmwebtest

test-lmwebtest.lms

End-to-end website test suite combining lmwebtest Web DSL, lmwebtest playwright interactive browser clicks/filters, and lmhtml DOM verification.

2. LMCode (_lmcode_ · DSLB v6) Example Scripts

LMCode

literals-and-std.lms

Demonstrates qw(), qi(), qf(), %(...) maps, json <<~TAG heredocs, priority queues, and template_render.

LMCode

shop-rules.lms

Targets the canonical sample_shop_v1 schema with Money operators, implicit conversions, and @vip fn ... implements Adjuster rules.

LMCode

lmaws-zones-demo.lms

Minimal _lmcode_ cli="lmaws" script querying Route 53 zones and returning structured JSON via run_lmcode.

3. Outer LMScript (.lms) Core Example Scripts

Part I

hello.lms

Variables, 0-based lists, negative indices, maps, and format strings.

Part II

python-strings.lms & regex-tokenizer.lms

Raw strings (r"..."), format strings (f"..."), regex_find / regex_matches substring extraction, and stateful Perl-like pos() tokenizers.

Part III

functions.lms

Top-level functions, functions passed as values (higher-order calls), and counted loops.

Part IV

data-blocks.lms

Parse-time validated _json_, _csv_, _toml_, and _props_ blocks.

Part V

processes.lms

Safe _cmd_ argv blocks, and system() result maps.

Part VI & VII

reverse-template.lms & sqlite-demo.lms

Bidirectional expand + template_extract and a temporary-file SQLite database queried with bound parameters.