Skip to content

簡単な例をコンパイル可能な Java ファイルにする #3

Description

@cedretaber

簡単な例:

From Corelib Require Extraction.
Extraction Language Java.

Inductive term :=
| Var : nat -> term
| Op : term -> term -> term.


Fixpoint size t : nat :=
	match t with 
	| Var _ => 1 
	| Op t1 t2 => 
		let s1 := size t1 in
		let s2 := size t2 in
		s1 + s2
	end.


Recursive Extraction size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions