On this page ...
Examples
In this section of the website, we’ve gathered a collection of examples—each focusing on a more advanced topic.
Throughout the coming year, more examples will be added to this list.
All example sources are available on GitHub.
See Getting Started for information on how to install and run them on your computer.
Currently Available
- Building an Interpreter — Learn how to build an interpreter that uses the Freon AST.
- Generic Types — Create a language that supports generic types.
- Using Svelte Components from a Library — Include custom components directly in the editor.
- Website Integration — Learn how to embed Freon inside another webpage or application.
Upcoming
The following examples are planned and, hopefully, will be available soon:
- Projection Fragments — How to create and reuse fragments in your projections.
- Editor Styling — How to style the generated editor.
- Custom Projections — How to define and use custom projection logic.
- Custom Actions — How to implement your own editor actions.
- Custom Scoping — How to adjust and extend the scope provider.
- Custom Validation — How to define custom validation rules.