let rec value_to_raw = function
| Module a -> Raw.Section (List.map (fun (name,value) -> name, value_to_raw value) a)
| StringValue a -> Raw.String a
| IntValue a -> Raw.Int a
| FloatValue a -> Raw.Float a
| List a -> Raw.List (List.map value_to_raw a)
| SmallList a -> Raw.Tuple (List.map value_to_raw a)