On this page ...
Other Customizations
The Reader and Writer
The reader (parser) and writer (unparser) cannot yet be customized per concept.
Instead, you can replace the entire reader or writer with your own implementation.
- The new reader must implement the
FreReaderinterface. - The new writer must implement the
FreWriterinterface.
The Standard Library
The standard library class provides an entry point for all predefined elements in the DSL.
It contains the instances of all limited concepts defined in the language definition file.
The generated standard library follows the singleton pattern, ensuring that only one instance of the class exists.
To customize the standard library, replace the generated TypeScript class with your own implementation.
Your new standard library must implement the FreStdlib interface.