README.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  1. Directory layout
  2. ----------------
  3. common/
  4. digitalwatch.xml
  5. The statechart model
  6. python/
  7. run.py
  8. Python script that runs the demo with the statechart interpreter. Run it from the 'python' directory.
  9. webassembly/
  10. index.html
  11. Web page that runs the demo with WebAssembly code, generated from Rust code, in turn generated from the statechart model.
  12. In order to run this demo, start a static HTTP server in the 'digitalwatch' directory:
  13. python -m http.server
  14. Then navigate your browser to http://localhost:8000/webassembly/
  15. codegen/
  16. Generated code: This is a Rust crate produced by SCCD compiler (module "sccd.test.cmd.to_rust") from 'common/digitalwatch.xml'. Building it with 'cargo' produces a library.
  17. wasm/
  18. Rust crate containing Rust glue code to interact with the generated code in 'codegen' from JavaScript. It should be built with the 'wasm-pack' command, producing JavaScript glue code, and a .wasm-file.
  19. pkg/
  20. Generated code: This directory contains the JavaScript glue code and .wasm-file built from this crate.