little guide to add examples

This commit is contained in:
mlokr 2024-06-15 10:46:53 +02:00
parent 1ca5d89644
commit 1624559e7b
No known key found for this signature in database
GPG key ID: DEA147DDEE644993

View file

@ -2,6 +2,20 @@
### Examples
Examples are also used in tests, to and an example that runs during testing add:
<pre>
#### <name>
```hb
<example>
```
</pre>
and also:
```rs
<name> => README;
```
to the `run_tests` macro at the bottom of the `src/codegen.rs`.
#### directives
```hb
Type := struct {