[fpc-pascal] Free Pascal Language Diagram
R0b0t1
r030t1 at gmail.com
Tue Sep 11 21:50:41 CEST 2018
Noice.
I'd been wanting to collect all of the ones from the docs into a more
coherent representation of the syntax.
On Tue, Sep 11, 2018 at 1:49 PM, Anthony Walter <sysrpl at gmail.com> wrote:
> I posted this link once before, but I thought I'd remind you guys it
> exists and ask if anyone would like to take the work from the page, and
> integrate it into either the official documentation or maintain it
> somewhere on the free pascal website.
>
> https://www.getlazarus.org/learn/language/lexical/
>
> The diagrams are pretty easy to create and edit. For example proecudre
> header is defined through a script tag on the page as follows:
>
> <script>
> Schematic(
> Link('Identifier', '#identifier'),
> Optional(Link('Generic Block', '#generic_block')),
> Optional(Link('Parameters', '#parameters')),
> Keyword(':'),
> Link('Identifier Dot', '#identifier_dot'),
> Keyword(';'),
> Optional(Link('Function Directives', '#function_directives'))
> ).render();
> </script>
>
>
> And renders like so:
>
> https://www.getlazarus.org/learn/language/lexical/#function_header
>
> To use just copy this css and script file on the any page you want to
> display diagrams:
>
> <link rel="stylesheet" type="test/stylesheet" href="//
> cache.getlazarus.org/styles/schematic.css">
> <script src="//cache.getlazarus.org/scripts/schematic.js"></script>
>
> You can look at the source of the page to see exactly what Schematic()
> commands are given to generate each diagram.
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180911/b73092da/attachment.html>
More information about the fpc-pascal
mailing list