Re: [isabelle] code_include SML and eval



Hi Peter,

> I have written some code-generation setup that requires on an additional
> module.
> What is the recommended way to include this additional module into the
> generated code?
> I tried:
> code_include SML "Foo" {*
>  structure Foo = struct
>    exception Bar;
>  end;
> *}

For syntactic reasons includes containing structures produce not always
valid code (let structure Foo = ... in ... end is not valid SML!).

Without the surrounding structure, it should work.  Perhaps what you
actually want is something like:

	axiomatization bar :: 'a
	code_abort bar

which produces an exception:

	export_code bar in SML file -

> And what is code_include good for?

It is one of the things you should try to get along without...


Hope this helps,
	Florian

-- 

Home:
http://www.in.tum.de/~haftmann

PGP available:
http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de

Attachment: signature.asc
Description: OpenPGP digital signature



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