3 ms·
Exactly. CDuce was a noble (but IMHO failed) attempt to add an XML-like DSL with functional-language overtones. For example you could write: transform bi
by rwmj 10y ago
Exactly. CDuce was a noble (but IMHO failed) attempt to add an XML-like DSL with functional-language overtones. For example you could write:
transform bib with
<_ (a)> [(x::(Author|Title|Url)|_)*] ->
[ <book ({isbn="fake"}+a\year)> x ]
where the <...> syntax looks similar to XML. (This example copied from http://www.cduce.org/tutorial_patterns.html http://www.cduce.org/tutorial_patterns.html )