feat: add wasm build targets, profile hooks, os_demo example, and restructure manual source
- Add `wasm`, `wasm-clean`, and `install-emscripten` phony targets to Makefile for WebAssembly cross-compilation - Insert `WREN_PROFILE_ENTER`/`WREN_PROFILE_EXIT` macros in `wren_vm.h` and `wren_vm.c` to support optional runtime profiling via `WREN_PROFILE_ENABLED` - Create `example/os_demo.wren` demonstrating Platform, Process, and conditional exit usage - Update `example/regex_demo.wren` to import `Match` and exercise Match object properties, groups, and `matchAll` - Remove static HTML manual pages (`base64.html`, `dns.html`, `json.html`) and replace with structured `manual_src/` directory containing Jinja2 templates, YAML metadata, and content pages - Expand `README.md` with build targets table, manual building instructions, source layout, and guide for adding new module documentation
This commit is contained in:
@@ -0,0 +1,172 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
|
||||
sections:
|
||||
- title: "Getting Started"
|
||||
directory: "getting-started"
|
||||
pages:
|
||||
- file: "index"
|
||||
title: "Overview"
|
||||
- file: "installation"
|
||||
title: "Installation"
|
||||
- file: "first-script"
|
||||
title: "First Script"
|
||||
- file: "repl"
|
||||
title: "Using the REPL"
|
||||
|
||||
- title: "Playground"
|
||||
directory: "."
|
||||
pages:
|
||||
- file: "playground"
|
||||
title: "Try Wren"
|
||||
|
||||
- title: "Language"
|
||||
directory: "language"
|
||||
pages:
|
||||
- file: "index"
|
||||
title: "Syntax Overview"
|
||||
- file: "classes"
|
||||
title: "Classes"
|
||||
- file: "methods"
|
||||
title: "Methods"
|
||||
- file: "control-flow"
|
||||
title: "Control Flow"
|
||||
- file: "fibers"
|
||||
title: "Fibers"
|
||||
- file: "modules"
|
||||
title: "Modules"
|
||||
|
||||
- title: "API Reference"
|
||||
directory: "api"
|
||||
pages:
|
||||
- file: "index"
|
||||
title: "Overview"
|
||||
- file: "string"
|
||||
title: "String"
|
||||
- file: "number"
|
||||
title: "Num"
|
||||
- file: "argparse"
|
||||
title: "argparse"
|
||||
- file: "base64"
|
||||
title: "base64"
|
||||
- file: "crypto"
|
||||
title: "crypto"
|
||||
- file: "dataset"
|
||||
title: "dataset"
|
||||
- file: "datetime"
|
||||
title: "datetime"
|
||||
- file: "dns"
|
||||
title: "dns"
|
||||
- file: "env"
|
||||
title: "env"
|
||||
- file: "faker"
|
||||
title: "faker"
|
||||
- file: "fswatch"
|
||||
title: "fswatch"
|
||||
- file: "html"
|
||||
title: "html"
|
||||
- file: "http"
|
||||
title: "http"
|
||||
- file: "io"
|
||||
title: "io"
|
||||
- file: "jinja"
|
||||
title: "jinja"
|
||||
- file: "json"
|
||||
title: "json"
|
||||
- file: "markdown"
|
||||
title: "markdown"
|
||||
- file: "math"
|
||||
title: "math"
|
||||
- file: "net"
|
||||
title: "net"
|
||||
- file: "os"
|
||||
title: "os"
|
||||
- file: "pathlib"
|
||||
title: "pathlib"
|
||||
- file: "regex"
|
||||
title: "regex"
|
||||
- file: "scheduler"
|
||||
title: "scheduler"
|
||||
- file: "signal"
|
||||
title: "signal"
|
||||
- file: "sqlite"
|
||||
title: "sqlite"
|
||||
- file: "subprocess"
|
||||
title: "subprocess"
|
||||
- file: "sysinfo"
|
||||
title: "sysinfo"
|
||||
- file: "tempfile"
|
||||
title: "tempfile"
|
||||
- file: "timer"
|
||||
title: "timer"
|
||||
- file: "tls"
|
||||
title: "tls"
|
||||
- file: "udp"
|
||||
title: "udp"
|
||||
- file: "uuid"
|
||||
title: "uuid"
|
||||
- file: "wdantic"
|
||||
title: "wdantic"
|
||||
- file: "web"
|
||||
title: "web"
|
||||
- file: "websocket"
|
||||
title: "websocket"
|
||||
- file: "yaml"
|
||||
title: "yaml"
|
||||
|
||||
- title: "Tutorials"
|
||||
directory: "tutorials"
|
||||
pages:
|
||||
- file: "index"
|
||||
title: "Tutorial List"
|
||||
- file: "http-client"
|
||||
title: "HTTP Client"
|
||||
- file: "websocket-chat"
|
||||
title: "WebSocket Chat"
|
||||
- file: "database-app"
|
||||
title: "Database App"
|
||||
- file: "template-rendering"
|
||||
title: "Templates"
|
||||
- file: "cli-tool"
|
||||
title: "CLI Tool"
|
||||
- file: "pexpect"
|
||||
title: "Process Automation"
|
||||
- file: "web-server"
|
||||
title: "Web Server"
|
||||
|
||||
- title: "How-To Guides"
|
||||
directory: "howto"
|
||||
pages:
|
||||
- file: "index"
|
||||
title: "How-To List"
|
||||
- file: "http-requests"
|
||||
title: "HTTP Requests"
|
||||
- file: "json-parsing"
|
||||
title: "JSON Parsing"
|
||||
- file: "regex-patterns"
|
||||
title: "Regex Patterns"
|
||||
- file: "file-operations"
|
||||
title: "File Operations"
|
||||
- file: "async-operations"
|
||||
title: "Async Operations"
|
||||
- file: "error-handling"
|
||||
title: "Error Handling"
|
||||
|
||||
- title: "Contributing"
|
||||
directory: "contributing"
|
||||
pages:
|
||||
- file: "index"
|
||||
title: "Overview"
|
||||
- file: "module-overview"
|
||||
title: "Module Architecture"
|
||||
- file: "pure-wren-module"
|
||||
title: "Pure-Wren Modules"
|
||||
- file: "c-backed-module"
|
||||
title: "C-Backed Modules"
|
||||
- file: "foreign-classes"
|
||||
title: "Foreign Classes"
|
||||
- file: "async-patterns"
|
||||
title: "Async Patterns"
|
||||
- file: "testing"
|
||||
title: "Writing Tests"
|
||||
- file: "documentation"
|
||||
title: "Documentation"
|
||||
@@ -0,0 +1,7 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
|
||||
name: "Wren-CLI"
|
||||
version: "0.4.0"
|
||||
description: "A complete reference for the Wren scripting language CLI"
|
||||
author: "retoor <retoor@molodetz.nl>"
|
||||
repo_url: "https://github.com/wren-lang/wren-cli"
|
||||
Reference in New Issue
Block a user