/[svn]/runtime/eval.ml
ViewVC logotype

Diff of /runtime/eval.ml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 328 by abate, Tue Jul 10 17:24:12 2007 UTC revision 329 by abate, Tue Jul 10 17:25:34 2007 UTC
# Line 72  Line 72 
72      | Typed.Op ("print_xml", [e]) -> eval_print_xml (eval env e)      | Typed.Op ("print_xml", [e]) -> eval_print_xml (eval env e)
73      | Typed.Op ("print", [e]) -> eval_print (eval env e)      | Typed.Op ("print", [e]) -> eval_print (eval env e)
74      | Typed.Op ("int_of", [e]) -> eval_int_of (eval env e)      | Typed.Op ("int_of", [e]) -> eval_int_of (eval env e)
75        | Typed.Op ("atom_of", [e]) -> eval_atom_of (eval env e)
76      | Typed.Op ("string_of", [e]) -> eval_string_of (eval env e)      | Typed.Op ("string_of", [e]) -> eval_string_of (eval env e)
77      | Typed.Op ("dump_to_file", [e1; e2]) ->      | Typed.Op ("dump_to_file", [e1; e2]) ->
78          eval_dump_to_file (eval env e1) (eval env e2)          eval_dump_to_file (eval env e1) (eval env e2)
# Line 201  Line 202 
202    try Integer (Intervals.mk s)    try Integer (Intervals.mk s)
203    with Failure _ -> raise exn_int_of    with Failure _ -> raise exn_int_of
204    
205    and eval_atom_of e =
206      let s = get_string_latin1 e in (* TODO: UTF-8 *)
207      (* TODO: check that s is a correct Name wrt XML *)
208      Atom (Atoms.mk s)
209    
210  and eval_print_xml v =  and eval_print_xml v =
211    string_latin1 (Print_xml.string_of_xml v)    string_latin1 (Print_xml.string_of_xml v)
212    

Legend:
Removed from v.328  
changed lines
  Added in v.329

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5