Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
3abf5ccc
Commit
3abf5ccc
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2002-11-25 13:58:05 by cvscast] Empty log message
Original author: cvscast Date: 2002-11-25 14:02:50+00:00
parent
6af9c14a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/examples.xml
View file @
3abf5ccc
...
...
@@ -310,6 +310,62 @@ let bib : Biblio =
];;
do_biblio bib;;
]]>
</code>
</example>
<!-- **************************************************************** -->
<example
code=
"projection"
>
<title>
Projection
</title>
<abstract>
Syntactic sugar for projection.
</abstract>
<code>
<![CDATA[
(* The projection e/t is translated to:
transform e with [ (x::t|_)* ] ->
x *)
type Biblio =
<bibliography>
[Heading Paper*];;
type Heading =
<heading>
[ PCDATA ];;
type Paper =
<paper>
[ Author+ Title Conference File ];;
type Author =
<author>
[ PCDATA ];;
type Title =
<title>
[ PCDATA ];;
type Conference =
<conference>
[ PCDATA ];;
type File =
<file>
[ PCDATA ];;
let bib : Biblio =
<bibliography>
[
<heading>
"Alain Frisch's bibliography"
<paper>
[
<author>
"Alain Frisch"
<author>
"Giuseppe Castagna"
<author>
"Vronique Benzaken"
<title>
"Semantic subtyping"
<conference>
"LICS 02"
<file>
"semsub.ps.gz"
]
<paper>
[
<author>
"Mariangiola Dezani-Ciancaglini"
<author>
"Alain Frisch"
<author>
"Elio Giovannetti"
<author>
"Yoko Motohama"
<title>
"The Relevance of Semantic Subtyping"
<conference>
"ITRS'02"
<file>
"itrs02.ps.gz"
]
<paper>
[
<author>
"Vronique Benzaken"
<author>
"Giuseppe Castagna"
<author>
"Alain Frisch"
<title>
"CDuce: a white-paper"
<conference>
"PLANX-02"
<file>
"planx.ps.gz"
]
];;
let titles = [bib]/
<paper>
_/
<title>
_;;
let authors = [bib]/
<paper>
_/
<author>
_;;
let titles_concat = [bib]/
<paper>
_/
<title>
_/Char;;
]]>
</code>
</example>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment