I'm generating Scala code with Isabelle. How can I specify a header for my Scala file? For example, I'd like to have something like this:
// Generated code. Generated with Isabelle/HOL
// File: blubb.thy line:1234
// Date: Wed, 27.03.2013
// exported code equations: bla blub blob ...
How can I specify the package to use? For example, to use the package GENERATED, the file should begin with the words package GENERATED.
The best idea I got so far is the code_include command with an empty second parameter ("").
If I choose a longer second parameter, the Efficient_Nat theory first emits its code. But I must write to the beginning of the file.
code_include Scala ""
{*package GENERATED
// Code generated by Isabelle
*}
How evil is this solution? If it is not that evil, how can I add things like the current date, the current thy file, and the line in which the export_code happens. Can I also add the code equations I exported but not their decencies?