Commit Graph

25 Commits

Author SHA1 Message Date
Bob Nystrom
2bb999127a docs: restructure embedding API docs into multi-page section with slots, lifecycle, and C interop guides 2016-05-16 15:09:14 +00:00
Bob Nystrom
fa1c1f5cda docs: document string interpolation syntax and update code examples across docs and site
Add a new "Interpolation" section to the values documentation explaining the `%(expr)` syntax with examples of complex expressions and nested interpolation. Update all code samples in README.md, getting-started.markdown, and index.markdown to use the new interpolation syntax instead of string concatenation. Adjust syntax highlighting in style.scss by adding a new `.si` class for interpolation spans with distinct background color, and tweak existing color values for strings, numbers, and keywords to improve visual distinction. Add the `\%` escape sequence to the list of supported escape characters in values.markdown.
2015-11-21 17:20:50 +00:00
Bob Nystrom
efcc4d07c7 docs: reorganize language guide into linear narrative with renamed sections and navigation links 2015-11-07 19:09:04 +00:00
Bob Nystrom
6bda720b71 feat: replace all :::dart code fence markers with :::wren in documentation
Add a custom Pygments lexer plug-in for Wren syntax highlighting, update contributing docs with setup instructions for the lexer, and switch every `:::dart` annotation across all doc/site markdown files to `:::wren` so code examples render with the correct language grammar.
2015-09-22 14:59:54 +00:00
Bob Nystrom
aa72900a9e feat: replace IO class with System class and remove separate IO module
- Delete wren_io.c, wren_io.h, and io.wren source files
- Remove multi-arity print overloads and IO.read/IO.time methods
- Add System class with print, printAll, write, writeAll methods to core.wren
- Update all documentation examples and README to use System.print instead of IO.print
2015-09-15 14:46:09 +00:00
Bob Nystrom
6b40c5b3f5 docs: update README and site docs to clarify VM vs CLI separation and mention libuv dependency 2015-08-31 05:38:40 +00:00
Bob Nystrom
6fa0e8cc0a docs: update Wren codebase line count from 5,000 to 7,000 in index.markdown
The line count reference in the documentation was outdated; updated the
stated codebase size from 5,000 to 7,000 lines to reflect current
repository growth.
2015-08-21 05:34:33 +00:00
Bob Nystrom
67f1480bf0 chore: migrate Travis CI to container-based builds and update README links
- Switch Travis CI from sudo-based apt-get to addons.apt.packages for gcc-multilib
- Enable container-based builds with `sudo: false`
- Update README.md call-to-action links to point to getting-started and browser playground
- Replace `printList_` with `printAll` in IO class and remove redundant `IO.` prefixes
- Add IO.read() method documentation and update IO.print docs for up to 16 arguments
- Reorganize community page with Libraries, Language bindings, and Tools sections
- Add wrenjs JavaScript binding and Sublime Text syntax highlighting
- Fix typo "no where" to "nowhere" in fibers documentation
- Add indentation to preprocessor defines in wren_common.h for consistency
- Remove unreachable `return 0` after UNREACHABLE() in wren_compiler.c
- Fix Windows color output by wrapping text in str() in test script
2015-07-19 19:49:23 +00:00
Bob Nystrom
83d01fdf5b docs: restructure community page with library, binding, and editor sections and update README call-to-action links 2015-07-18 18:19:52 +00:00
Bob Nystrom
e19ff59cce feat: replace new keyword with this constructor syntax and ClassName.new() calls across core library and docs
Replace all uses of the `new` reserved word with explicit `this new()` constructor definitions and `ClassName.new()` instantiation calls in builtin/core.wren. Update all documentation files (classes.markdown, fiber.markdown, fn.markdown, sequence.markdown, error-handling.markdown, expressions.markdown, fibers.markdown, functions.markdown) to reflect the new constructor syntax, removing `new` keyword examples and replacing them with `ClassName.new()` patterns and `this new()` definitions.
2015-07-10 16:18:22 +00:00
Thorbjørn Lindeijer
343bfa7a84 feat: add Sequence.each method for side-effect iteration without list creation
Add a new `each` method to the Sequence class that iterates over elements
calling a provided function for each, serving as a side-effect-only
alternative to `map` when the resulting list is not needed. This is
particularly important for the upcoming change where `map` will return a
new sequence instead of mutating in place, as demonstrated by updating
the README and index examples to use `each` with Fiber.yield. Includes
documentation in the Sequence API reference and three new test cases
covering normal iteration, empty sequences, and non-function argument
error handling.
2015-03-28 19:35:20 +00:00
Bob Nystrom
5382fa05d7 feat: allow empty argument list methods in calls, definitions, and docs
- Compile empty `()` as a valid method signature distinct from no parentheses
- Update `call()`, `clear()`, `run()`, `try()`, and `yield()` to use empty argument lists
- Revise documentation across multiple files to reflect new signature semantics
2015-02-27 07:08:36 +00:00
Bob Nystrom
00dca683b7 docs: update README and site index to mention Wren compiles cleanly as C++98 or later 2015-01-16 05:15:21 +00:00
Bob Nystrom
e07fe5149b docs: add AUTHORS file and expand contributor guide with detailed workflow
- Create AUTHORS file listing Robert Nystrom as initial contributor
- Rewrite README to emphasize Wren as concurrent scripting language with fiber examples
- Expand contributing.markdown with structured sections for finding tasks and making changes
- Update index.markdown with call-to-action links for trying and contributing
2015-01-04 21:36:23 +00:00
Bob Nystrom
98d358142d docs: reflow all markdown files to 80-char width and add control-flow page with branching/looping content 2015-01-04 07:27:02 +00:00
Bob Nystrom
2d7b4f951c fix: correct Wren class syntax in README and doc site examples to use getter methods 2015-01-03 04:07:43 +00:00
Bob Nystrom
464a2139b1 fix: remove embedded newline from "small" in Wren class adjectives array 2015-01-02 15:59:31 +00:00
Bob Nystrom
374bb4aed9 fix: correct broken link to embedding API documentation in site index
The link target for the embedding API reference was pointing to the wrong
filename (`embedding.html` instead of `embedding-api.html`), causing a 404
error when users clicked the link. This commit updates the href to match the
actual generated documentation file.
2015-01-02 06:59:38 +00:00
Bob Nystrom
235518637a style: update site color scheme, typography, and copy across documentation pages 2014-08-19 14:35:20 +00:00
Bob Nystrom
6ed15da597 feat: add category metadata to doc pages and switch code blocks to dart syntax
Add `^category` front matter to all language, types, and reference doc pages for site navigation restructuring. Replace `:::wren` and `:::java` code block annotations with `:::dart` across multiple files. Create new stub pages for core-libraries, embedding-api, and contributing under the reference category. Remove the old embedding and getting-involved stub pages.
2014-04-15 04:23:46 +00:00
Bob Nystrom
d791dd0d7c docs: add Getting Started page with setup instructions and interactive mode examples
Add a comprehensive Getting Started guide covering Unix/Mac installation via git clone and make, interactive mode usage with code examples, and script execution with a Mandelbrot fractal demo. Also update the site navigation template to link the new page, add placeholder pages for Embedding, Error Handling, and Getting Involved, fix the index page link from "usage.html" to "embedding.html", and reorder the types section in the nav to list Fibers before Functions.
2014-04-09 14:53:30 +00:00
Bob Nystrom
65075d433c docs: reword code size limit from 5,000 to 4,000 semicolons in index.markdown 2014-02-19 15:14:46 +00:00
Bob Nystrom
781ccf3fb6 docs: revise branching, classes, index, looping, qa, syntax docs and add concurrency/error-handling nav entries 2014-01-21 05:44:51 +00:00
Bob Nystrom
d0d92971d8 fix: correct example code in site index to use IO.print instead of io.write 2014-01-12 18:58:13 +00:00
Bob Nystrom
67c9435b03 feat: add initial documentation site with markdown pages and build script 2013-11-22 05:38:36 +00:00