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
bbab8a37
Commit
bbab8a37
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-09-25 21:05:22 by cvscast] Beppe: error in the example
Original author: cvscast Date: 2003-09-25 21:05:22+00:00
parent
b822be4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/tutorial/patterns.xml
View file @
bbab8a37
...
...
@@ -63,7 +63,7 @@ is to resort to intersection and default patterns as follows:
let content (Sample ->
String)
|
<sample
(
({
highlight =
h
}
|
(h
{{
:=
}}
"true"))
{{&}}({
lineno =
l
}
|
(l
{{
:=
}}
"true"))
)
>
_
-> ['lineno=' l ', highlight=' h]
-> ['lineno='
!
l ', highlight='
!
h]
]]>
</sample>
<p>
...
...
@@ -71,8 +71,7 @@ The intersection pattern <code>&</code> makes both patterns to be matched
against the record of attributes: each pattern check the presence of an specific
attributes, if it present it captures the attribute value in a given variables
while if the attribute is absent the default subpattern to assign to the
variable a default value (disclaimer, for the moment defaut patterns accepts
only constants; this limitation will soon desappear).
variable a default value.
</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