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
b736e529
Commit
b736e529
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2004-12-28 01:49:04 by afrisch] Demo
Original author: afrisch Date: 2004-12-28 01:49:04+00:00
parent
37dd3b15
Changes
2
Hide whitespace changes
Inline
Side-by-side
web/demo.xml
View file @
b736e529
...
...
@@ -2,6 +2,12 @@
<page
name=
"demo"
>
<title>
CDuce demo
</title>
<box
title=
"Compilation of pattern matching"
link=
"pm_compil"
>
<p>
This example demonstrates the efficient compilation of pattern
matching.
</p>
<demo><include-verbatim
file=
"examples/pm_compil.cd"
/></demo>
</box>
<box
title=
"Integers"
link=
"ints"
>
<p>
Let's begin with integers, arithmetic, and, obviously, the
...
...
web/site.cd
View file @
b736e529
...
...
@@ -269,7 +269,7 @@ let demo(no : Int)(txt : String) : H:Flow =
(
button
"
Clear
"
(
"
clearres('
"
@
n
@
"
');
"
))
]
]
<
tr
>
[
<
td
>
[
<
textarea
id
=
(
n
@
"
req
"
)
cols
=
"
60
"
rows
=
"
25
"
>
txt
]
<
td
valign
=
"
top
"
>
[
<
textarea
id
=
(
n
@
"
req
"
)
cols
=
"
60
"
rows
=
"
25
"
>
txt
]
<
td
valign
=
"
top
"
>
[
<
div
id
=
(
n
@
"
res
"
)
>
[]
]
]
]
]
(
*
Main
transformation
function
*
)
...
...
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