1
0
Fork 0
forked from koniifer/ableos

little guide to add examples

This commit is contained in:
mlokr 2024-06-15 10:46:53 +02:00
parent 738e2e95f4
commit b0b04228d4

View file

@ -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 {