RAS Playground 日本語 GitHub

Getting started

Playground

Open the playground

A page where you can write and run RAS without installing anything. The compiler and the Excel stand-in are compiled to WebAssembly and everything runs inside the browser (neither source nor workbooks are sent anywhere).

Samples

Open them from "New / samples…" at the top. Each sample's workbook has buttons and controls with its macros assigned: switch the right end of the "Workbook" tab's ribbon to "▶ Run" mode and press the buttons on the sheet to run the macros (the same as the run mode of the sheet preview; spec §14.10.10).

Sample What it shows
Hello A macro that writes a table and formulas from an array of structs, with its buttons. Tests in test/
OrderSheet An order sheet of ActiveX controls (a combo box, a spin button, a check box, a command button) and the sheet's events (Change, SelectionChange, BeforeDoubleClick) and Workbook.Open. readTable reading columns by their headings, totals with a Map
Forms A user form: input validation (validation), placeholders, resizing (resizable) with anchors, the arguments of new and the value of showModal()
Dialogs msgBox, inputBox, dialogs built from code alone (choose, Dialog, Progress), how a run-time error is shown
DataTools Parsing CSV (csv), regular expression literals, readTable / writeTable, totals with a Map, JSON (json), tests
SalesReport examples/sales-report (in Japanese)

What you can do

What you cannot do

Syncing with Excel itself (ras sync) and running with Excel are available only in the VS Code extension and the CLI. Features missing from the Excel stand-in (such as calling handwritten VBA) produce errors in the playground just as with ras run (Run without Excel).

Links shared with the old address (https://cool0707.github.io/ras/#code=…) still open in the playground as they are.

How to develop the playground (build and test) is described in web/README.md.