mirror of
https://github.com/Z3Prover/z3
synced 2025-06-29 09:28:45 +00:00
pp support for regex expressions is more-or-less standard syntax
This commit is contained in:
parent
9729db16a2
commit
2c33bd6faf
3 changed files with 203 additions and 1 deletions
|
@ -412,6 +412,12 @@ public:
|
|||
seq_util& u;
|
||||
ast_manager& m;
|
||||
family_id m_fid;
|
||||
void seq_util::re::pp_compact_helper_seq(std::ostringstream& buffer, expr* s);
|
||||
void seq_util::re::pp_compact_helper_range(std::ostringstream& buffer, expr* s1, expr* s2);
|
||||
bool seq_util::re::pp_can_skip_parenth(expr* r);
|
||||
void seq_util::re::pp_seq_unit(std::ostringstream& buffer, expr* s);
|
||||
void pp_compact_to_buffer(std::ostringstream& buffer, expr* r);
|
||||
|
||||
public:
|
||||
re(seq_util& u): u(u), m(u.m), m_fid(u.m_fid) {}
|
||||
|
||||
|
@ -481,6 +487,7 @@ public:
|
|||
unsigned max_length(expr* r) const;
|
||||
bool is_epsilon(expr* r) const;
|
||||
app* mk_epsilon(sort* seq_sort);
|
||||
std::string pp(expr* r);
|
||||
};
|
||||
str str;
|
||||
re re;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue