little guide to add examples
This commit is contained in:
parent
1ca5d89644
commit
1624559e7b
|
@ -2,6 +2,20 @@
|
||||||
|
|
||||||
### Examples
|
### 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
|
#### directives
|
||||||
```hb
|
```hb
|
||||||
Type := struct {
|
Type := struct {
|
||||||
|
|
Loading…
Reference in a new issue