Commit ec439498 authored by Pietro Abate's avatar 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 44249c6a
......@@ -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]
......@@ -71,8 +71,7 @@ The intersection pattern <code>&amp;</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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment