From: Peter Lammich <lammich@in.tum.de>
Hi List,
I have a datatype
datatype result = INT integer | STRING String.literal
and an Isabelle function
compute :: int => result
I now want the code generator to map this Isabelle function to an
external implementation, e.g.
code_printing
constant compute ⇀ (Scala) "MyObject.compute"
However, is there any way to come up with a Scala implementation for
MyObject.compute, that can "see" the datatype "result", which is
generated by the code generator?
If not, is there any possibility how to pass complex data types between
Isabelle generated and native Scala code?
Thanks in advance for any help,
Peter
Last updated: Nov 21 2024 at 12:39 UTC