diff --git a/web/documentation/arrays/arrays.md b/web/documentation/arrays/arrays.md index 2342dd3..eccbda0 100644 --- a/web/documentation/arrays/arrays.md +++ b/web/documentation/arrays/arrays.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Arrays in Fun +title: Arrays in Fun subtitle: Working with arrays, creation, indexing/slicing, iteration patterns, helpers, and idioms. description: Working with arrays, creation, indexing/slicing, iteration patterns, helpers, and idioms. permalink: /documentation/arrays/ diff --git a/web/documentation/asyncio/asyncio.md b/web/documentation/asyncio/asyncio.md index 64b5385..952e870 100644 --- a/web/documentation/asyncio/asyncio.md +++ b/web/documentation/asyncio/asyncio.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Async I/O ("asyncio") in Fun +title: Async I/O ("asyncio") in Fun subtitle: Async I/O primitives and patterns, non-blocking sockets, fd polling, examples, and best practices. description: Async I/O primitives and patterns, non-blocking sockets, fd polling, examples, and best practices. permalink: /documentation/asyncio/ diff --git a/web/documentation/bytecode-format/bytecode-format.md b/web/documentation/bytecode-format/bytecode-format.md index b28dcff..b6f12ec 100644 --- a/web/documentation/bytecode-format/bytecode-format.md +++ b/web/documentation/bytecode-format/bytecode-format.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Bytecode Format (Overview) +title: Bytecode Format (Overview) subtitle: Reference for the bytecode format (split out from internals for convenience). description: Reference for the bytecode format (split out from internals for convenience). permalink: /documentation/bytecode-format/ diff --git a/web/documentation/cli/cli.md b/web/documentation/cli/cli.md index ac63ec4..da08be7 100644 --- a/web/documentation/cli/cli.md +++ b/web/documentation/cli/cli.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Fun CLI +title: Fun CLI subtitle: Command-line usage of the `fun` executable, synopsis, options, exit codes, includes and library paths. description: Command-line usage of the `fun` executable, synopsis, options, exit codes, includes and library paths. permalink: /documentation/cli/ diff --git a/web/documentation/contributing/contributing.md b/web/documentation/contributing/contributing.md index caa638f..a51ca9c 100644 --- a/web/documentation/contributing/contributing.md +++ b/web/documentation/contributing/contributing.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Contributing to Fun +title: Contributing to Fun subtitle: How to contribute, project structure, coding style, running tests, and PR guidelines. description: How to contribute, project structure, coding style, running tests, and PR guidelines. permalink: /documentation/contributing/ diff --git a/web/documentation/embedding/embedding.md b/web/documentation/embedding/embedding.md index 2d39d00..ecead69 100644 --- a/web/documentation/embedding/embedding.md +++ b/web/documentation/embedding/embedding.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Embedding Fun +title: Embedding Fun subtitle: Embedding the VM from C/Rust, lifecycle, and host integration tips. description: Embedding the VM from C/Rust, lifecycle, and host integration tips. permalink: /documentation/embedding/ diff --git a/web/documentation/errors-and-diagnostics/errors-and-diagnostics.md b/web/documentation/errors-and-diagnostics/errors-and-diagnostics.md index c1306d1..89cd3d1 100644 --- a/web/documentation/errors-and-diagnostics/errors-and-diagnostics.md +++ b/web/documentation/errors-and-diagnostics/errors-and-diagnostics.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Errors and Diagnostics +title: Errors and Diagnostics subtitle: Understanding parser/runtime errors and enabling diagnostics. description: Understanding parser/runtime errors and enabling diagnostics. permalink: /documentation/errors-and-diagnostics/ diff --git a/web/documentation/extensions/curl/curl.md b/web/documentation/extensions/curl/curl.md index b9ed099..a5cd048 100644 --- a/web/documentation/extensions/curl/curl.md +++ b/web/documentation/extensions/curl/curl.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - cURL (libcurl) extension (optional) +title: cURL (libcurl) extension (optional) subtitle: Documentation for cURL (libcurl) extension (optional) description: Documentation for cURL (libcurl) extension (optional) permalink: /documentation/extensions/curl/ diff --git a/web/documentation/extensions/extensions.md b/web/documentation/extensions/extensions.md index 81b8801..a40a719 100644 --- a/web/documentation/extensions/extensions.md +++ b/web/documentation/extensions/extensions.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Optional extensions +title: Optional extensions subtitle: Catalog of optional, build-time selectable extensions for the Fun VM (e.g., cURL, SQLite, JSON). description: Catalog of optional, build-time selectable extensions for the Fun VM (e.g., cURL, SQLite, JSON). permalink: /documentation/extensions/ diff --git a/web/documentation/extensions/ini/ini.md b/web/documentation/extensions/ini/ini.md index 095fb96..7a48511 100644 --- a/web/documentation/extensions/ini/ini.md +++ b/web/documentation/extensions/ini/ini.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - INI (iniparser) extension (optional) +title: INI (iniparser) extension (optional) subtitle: Documentation for INI (iniparser) extension (optional) description: Documentation for INI (iniparser) extension (optional) permalink: /documentation/extensions/ini/ diff --git a/web/documentation/extensions/json/json.md b/web/documentation/extensions/json/json.md index 05d2d06..b99bba1 100644 --- a/web/documentation/extensions/json/json.md +++ b/web/documentation/extensions/json/json.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - JSON (json-c) extension (optional) +title: JSON (json-c) extension (optional) subtitle: Documentation for JSON (json-c) extension (optional) description: Documentation for JSON (json-c) extension (optional) permalink: /documentation/extensions/json/ diff --git a/web/documentation/extensions/kcgi/kcgi.md b/web/documentation/extensions/kcgi/kcgi.md index beda451..ba4e790 100644 --- a/web/documentation/extensions/kcgi/kcgi.md +++ b/web/documentation/extensions/kcgi/kcgi.md @@ -3,7 +3,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - KCGI extension (optional) +title: KCGI extension (optional) subtitle: Documentation for KCGI (kcgi) extension (optional) description: Documentation for KCGI (kcgi) extension (optional) permalink: /documentation/extensions/kcgi/ diff --git a/web/documentation/extensions/openssl/openssl.md b/web/documentation/extensions/openssl/openssl.md index af38a23..2b19573 100644 --- a/web/documentation/extensions/openssl/openssl.md +++ b/web/documentation/extensions/openssl/openssl.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - OpenSSL extension (optional) +title: OpenSSL extension (optional) subtitle: Documentation for OpenSSL extension (optional) description: Documentation for OpenSSL extension (optional) permalink: /documentation/extensions/openssl/ diff --git a/web/documentation/extensions/pcre2/pcre2.md b/web/documentation/extensions/pcre2/pcre2.md index 85cd0e2..2bda860 100644 --- a/web/documentation/extensions/pcre2/pcre2.md +++ b/web/documentation/extensions/pcre2/pcre2.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - PCRE2 (Perl-Compatible Regex) extension (optional) +title: PCRE2 (Perl-Compatible Regex) extension (optional) subtitle: Documentation for PCRE2 (Perl-Compatible Regex) extension (optional) description: Documentation for PCRE2 (Perl-Compatible Regex) extension (optional) permalink: /documentation/extensions/pcre2/ diff --git a/web/documentation/extensions/pcsc/pcsc.md b/web/documentation/extensions/pcsc/pcsc.md index d3eb067..0a145b0 100644 --- a/web/documentation/extensions/pcsc/pcsc.md +++ b/web/documentation/extensions/pcsc/pcsc.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - PC/SC (smart cards) extension (optional) +title: PC/SC (smart cards) extension (optional) subtitle: Documentation for PC/SC (smart cards) extension (optional) description: Documentation for PC/SC (smart cards) extension (optional) permalink: /documentation/extensions/pcsc/ diff --git a/web/documentation/extensions/sqlite/sqlite.md b/web/documentation/extensions/sqlite/sqlite.md index 8ec0e2b..4a70a05 100644 --- a/web/documentation/extensions/sqlite/sqlite.md +++ b/web/documentation/extensions/sqlite/sqlite.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - SQLite extension (optional) +title: SQLite extension (optional) subtitle: Documentation for SQLite extension (optional) description: Documentation for SQLite extension (optional) permalink: /documentation/extensions/sqlite/ diff --git a/web/documentation/extensions/xml2/xml2.md b/web/documentation/extensions/xml2/xml2.md index df21e3c..ad5bc9c 100644 --- a/web/documentation/extensions/xml2/xml2.md +++ b/web/documentation/extensions/xml2/xml2.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - XML (libxml2) extension (optional) +title: XML (libxml2) extension (optional) subtitle: Documentation for XML (libxml2) extension (optional) description: Documentation for XML (libxml2) extension (optional) permalink: /documentation/extensions/xml2/ diff --git a/web/documentation/fun/fun.md b/web/documentation/fun/fun.md index 47302c4..7745177 100644 --- a/web/documentation/fun/fun.md +++ b/web/documentation/fun/fun.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Fun executable, full usage guide +title: Fun executable, full usage guide subtitle: Full usage guide for the `fun` executable, invocation patterns, REPL, env vars, include paths, examples, and install locations. description: Full usage guide for the `fun` executable, invocation patterns, REPL, env vars, include paths, examples, and install locations. permalink: /documentation/fun/ @@ -28,7 +28,7 @@ This document explains how to use the `fun` binary after building or installing ## Synopsis
fun [options] [script.fun] [-- args...]
-- +- - If [script.fun] is provided, `fun` runs the script. - If omitted and the build enables the REPL, `fun` starts an interactive session. diff --git a/web/documentation/maps/maps.md b/web/documentation/maps/maps.md index 01abce3..aa115cb 100644 --- a/web/documentation/maps/maps.md +++ b/web/documentation/maps/maps.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Maps in Fun +title: Maps in Fun subtitle: Working with maps, construction, lookup/update, merging, iteration, and common patterns. description: Working with maps, construction, lookup/update, merging, iteration, and common patterns. permalink: /documentation/maps/ diff --git a/web/documentation/numbers/numbers.md b/web/documentation/numbers/numbers.md index 98d3ca5..b9ce5c2 100644 --- a/web/documentation/numbers/numbers.md +++ b/web/documentation/numbers/numbers.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Working with numbers and floats in Fun +title: Working with numbers and floats in Fun subtitle: Working with integers and floats, arithmetic, conversions, clamping, bitwise ops, and patterns. description: Working with integers and floats, arithmetic, conversions, clamping, bitwise ops, and patterns. permalink: /documentation/numbers/ diff --git a/web/documentation/performance/performance.md b/web/documentation/performance/performance.md index fff9d53..22a1736 100644 --- a/web/documentation/performance/performance.md +++ b/web/documentation/performance/performance.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Performance Guide +title: Performance Guide subtitle: Build/runtime tuning tips and patterns for better performance. description: Build/runtime tuning tips and patterns for better performance. permalink: /documentation/performance/ diff --git a/web/documentation/roadmap/roadmap.md b/web/documentation/roadmap/roadmap.md index cc89162..6592fd9 100644 --- a/web/documentation/roadmap/roadmap.md +++ b/web/documentation/roadmap/roadmap.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Roadmap +title: Roadmap subtitle: High-level direction, planned features, and pointers to issues. description: High-level direction, planned features, and pointers to issues. permalink: /documentation/roadmap/ diff --git a/web/documentation/security-and-sandboxing/security-and-sandboxing.md b/web/documentation/security-and-sandboxing/security-and-sandboxing.md index f7e3e9c..2aa7b35 100644 --- a/web/documentation/security-and-sandboxing/security-and-sandboxing.md +++ b/web/documentation/security-and-sandboxing/security-and-sandboxing.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Security and Sandboxing +title: Security and Sandboxing subtitle: Trust boundaries, I/O expectations, and capability restrictions. description: Trust boundaries, I/O expectations, and capability restrictions. permalink: /documentation/security-and-sandboxing/ diff --git a/web/documentation/strings/strings.md b/web/documentation/strings/strings.md index 2da528d..daa91af 100644 --- a/web/documentation/strings/strings.md +++ b/web/documentation/strings/strings.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Working with strings in Fun +title: Working with strings in Fun subtitle: Working with strings, literals/escaping, concatenation, substr/find, split, and conversions. description: Working with strings, literals/escaping, concatenation, substr/find, split, and conversions. permalink: /documentation/strings/ diff --git a/web/documentation/style-guide/style-guide.md b/web/documentation/style-guide/style-guide.md index 61babbc..bf505da 100644 --- a/web/documentation/style-guide/style-guide.md +++ b/web/documentation/style-guide/style-guide.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Fun Style Guide +title: Fun Style Guide subtitle: Coding conventions for C and Fun (indentation, naming, idioms). description: Coding conventions for C and Fun (indentation, naming, idioms). permalink: /documentation/style-guide/ diff --git a/web/documentation/testing/testing.md b/web/documentation/testing/testing.md index 0060eb2..132110c 100644 --- a/web/documentation/testing/testing.md +++ b/web/documentation/testing/testing.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Building and Running Tests +title: Building and Running Tests subtitle: How to build and run tests/targets with CMake/CTest, and where to add new tests. description: How to build and run tests/targets with CMake/CTest, and where to add new tests. permalink: /documentation/testing/ diff --git a/web/documentation/types/types.md b/web/documentation/types/types.md index f4722e4..d5ca8aa 100644 --- a/web/documentation/types/types.md +++ b/web/documentation/types/types.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Core datatypes, arrays, maps, strings, numbers, booleans and nil +title: Core datatypes, arrays, maps, strings, numbers, booleans and nil subtitle: Core types (numbers, strings, arrays, maps, nil/bool), common operations, patterns, and interop notes. description: Core types (numbers, strings, arrays, maps, nil/bool), common operations, patterns, and interop notes. permalink: /documentation/types/ @@ -177,7 +177,7 @@ print(typeof({})) // "map" ## Common patterns - Accumulate values: -- +- ``` acc = [] for i = 0; i < 5; i = i + 1 { push(acc, i*i) } @@ -185,14 +185,14 @@ print(typeof({})) // "map" ``` - Group related data with a map: -- +- ``` person = { "name": "Lin", "skills": ["C", "Fun"] } print(person["skills"][1]) // Fun ``` - Safe map read: -- +- ``` v = person["twitter"] handle = v != nil ? v : "(none)" diff --git a/web/documentation/writing-tests/writing-tests.md b/web/documentation/writing-tests/writing-tests.md index f610f79..28cef10 100644 --- a/web/documentation/writing-tests/writing-tests.md +++ b/web/documentation/writing-tests/writing-tests.md @@ -4,7 +4,7 @@ published: true noToc: false noComments: false noDate: false -title: Fun - Writing Tests +title: Writing Tests subtitle: How to author new tests for Fun and opcode components. description: How to author new tests for Fun and opcode components. permalink: /documentation/writing-tests/