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
fdcd9bcc
Commit
fdcd9bcc
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2005-06-07 22:02:51 by beppe] Empty log message
Original author: beppe Date: 2005-06-07 22:02:51+00:00
parent
0884764e
Changes
1
Show whitespace changes
Inline
Side-by-side
web/tutorial/patterns.xml
View file @
fdcd9bcc
...
...
@@ -236,10 +236,10 @@ while if the attribute is absent the default sub-pattern is used to assign the
variable a default value.
</p>
<p>
The use of pattern of the form
<code>
The use of pattern
s
of the form
<code>
({ label1= x } | (x := %%v%%))
&
{ label2 = y }
</code>
is so common in handling
optional fields (hence, XML attributes) that CDuce has a special syntax for this
pattern:
<code>
kind of
pattern
s
:
<code>
{ label1 = x else (x := %%v%%) ; label2 = y }
</code>
</p>
</box>
...
...
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