forked from koniifer/ableos
little guide to add examples
This commit is contained in:
parent
738e2e95f4
commit
b0b04228d4
|
@ -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