These are some ideas on several ways in which we can present the Prolog examples developed within PEG, as background material for our discussions:
-
A simple and standard way is to simply save them in a code repository (gitlab,
github, etc.). -
If we want to present them in a more user-friendly way, these are
some possible options:2.1 A plain web page or discourse page.
- Advantage: simplest solution
- Disadvantage:
- to run examples you have to cut and paste to some playground or your Prolog installation;
- difficult to support minor differences among Prologs.
2.2 A web or discourse page with links that load the examples in
different Prolog systems (SWI, Ciao, XSB, etc.).- Advantage:
- can run examples,
- only one copy of the page needed,
- can support slightly different code for each Prolog if needed.
- Disadvantage: examples do not run within the page.
2.3 Notebooks with runnable examples ⏵ SWI Ciao XSB …
- Advantage: examples run within the page.
- Disadvantage:
- will need to develop a different page for each Prolog supported;
- also, not all Prologs have this functionality.
-
Other issues:
- Ease of editing.
- Privacy.
- Need to set up a server or not.
- …