Reply to comment

cdata section in cduce

I wrote a small patch to manipulate cdata section in cduce as follow:


abate@zed.fr:~/Projects/cduce-ocaml-3.10$ledit ./cduce
CDuce version 0.5.0

# cdata_of ;;
- : String -> String =

# type a = Cdata ;;
Characters 6-7:
Capture variable not allowed: Cdata

# type a = String ;;
# let b : a = (cdata_of "ggg>>" );;
val b : a = 'ggg>>'
# print_xml b ;;
- : Latin1 = ">]]>"

# let [ c ] = map [ b ] with c -> c ;;
val c : a = ggg>>
# print_xml c;;
- : Latin1 = ">]]>"

the code in in the svn repository:
http://cduce.org/cgi-bin/viewcvs.cgi/cduce/trunk/?root=svn

Average: 1 (52 votes)

Reply

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
6
Z
G
P
N
M
Enter the code without spaces and pay attention to upper/lower case.