Skip to content

Fix #12: Add more examples to playground#13

Merged
lefticus merged 1 commit into
ChaiScript:masterfrom
leftibot:fix/issue-12-add-more-examples-to-playground
Apr 14, 2026
Merged

Fix #12: Add more examples to playground#13
lefticus merged 1 commit into
ChaiScript:masterfrom
leftibot:fix/issue-12-add-more-examples-to-playground

Conversation

@leftibot
Copy link
Copy Markdown
Contributor

Automated fix by @leftibot.

What changed

Fix #12: Add examples sidebar and live execution to playground
Adds a sidebar with 12 clickable examples covering all major ChaiScript
features: variables, functions, conditionals, loops, strings, vectors/maps,
lambdas, classes, guards, error handling, and scoping. Clicking an example
populates the editor and auto-runs. Live execution re-evaluates code on
every edit with a 500ms debounce, similar to Compiler Explorer.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Files

 playground.html    | 213 ++++++++++++++++++++++++++++++++++++++++++++---------
 test_playground.sh |  18 +++++
 2 files changed, 195 insertions(+), 36 deletions(-)

Closes #12

Triggered by @lefticus.

Adds a sidebar with 12 clickable examples covering all major ChaiScript
features: variables, functions, conditionals, loops, strings, vectors/maps,
lambdas, classes, guards, error handling, and scoping. Clicking an example
populates the editor and auto-runs. Live execution re-evaluates code on
every edit with a 500ms debounce, similar to Compiler Explorer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lefticus lefticus merged commit 1ee085a into ChaiScript:master Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more examples to playground

2 participants