Re: [isabelle] Conversion Scala Char to Isabelle chars

Dear Thomas,

you don't have to do much. In Scala, the String class has the function toList which converts a string to a character list.

Moreover, if you import in your theory "~~/src/HOL/Library/Code_Char_chr"
then, the Isabelle chars should be mapped to Scala characters.


Am 10.02.2012 um 16:33 schrieb Thomas Genet:

> Dear all Isabelle users,
> I am using Isabelle code generation towards Scala and my Isabelle code is using strings, i.e. lists of chars. However, in the generated code I only have Isabelle representation of chars using couple of hexadecimal numbers (am I right ?) but no function to convert Scala chars to an Isabelle one...
> Is there something that I missed somewhere or do I have to write it by hand?
> Thanks in advance,
> Thomas
> -- 
> Thomas Genet
> Campus de Beaulieu, 35042 Rennes cedex, France
> Tél: +33 (0) 2 99 84 73 44   E-mail: genet at

This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.