Prev Up Next
Go backward to 3 Related changes to the language
Go up to Top
Go forward to 5 Our Proposal More in Detail

4 Some examples

We try to rewrite a simplified version of a couple of examples from BKB's Concrete Syntax proposal, to show how the same things can be expressed in our proposal with the restricted form for extension (and the generalized form for union), but with a purely functional style for generics.

The concrete syntax used here is not so sophisticated as that by Bernd, but we hope that it is readable (please do not think that it is a proposal, we wouldn't support it ;-). Anyway, we defined macros for most of the used constructs of the abstract syntax, so if you find the example unreadable, it should be not too difficult to customize the latex source for your preferred concrete syntax.

[Sorry: Hyperlatex doesn't like the array environment, so I'm having to omit an example here. See the DVI or Postscript versions, which include it.]


CoFI Note: L-3 --DRAFT, Version 0.2-- 21 May 1997.
Comments to cerioli@disi.unige.it

Prev Up Next