feat(frontends/lean/print_cmd): add basic support for testing new inductive datatype module
This commit is contained in:
parent
863355c6a0
commit
b79794e601
1 changed files with 7 additions and 0 deletions
|
|
@ -376,6 +376,13 @@ void print_id_info(parser & p, message_builder & out, name const & id, bool show
|
|||
print_constant(p, out, "def", d, show_value);
|
||||
if (show_value)
|
||||
print_definition(env, out, c, pos);
|
||||
} else if (d.is_inductive()) {
|
||||
print_constant(p, out, "(new) inductive", d);
|
||||
out << "constructors:\n";
|
||||
for (name const & n : d.to_inductive_val().get_cnstrs())
|
||||
out << n << "\n";
|
||||
} else if (d.is_constructor()) {
|
||||
print_constant(p, out, "(new) constructor", d);
|
||||
}
|
||||
// print_patterns(p, c);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue