return 0;
}
-void NullOp::uncompile()
+void NullOp::decompile()
{
;
}
}
if (must_recompile)
- uncompile();
+ decompile();
return size;
}
}
-void MatchOp::uncompile()
+void MatchOp::decompile()
{
ins_cache = NULL;
}
j->i.link = &j[sz2 + 1];
if (must_recompile)
- uncompile();
+ decompile();
return sz1 + sz2 + 2;
}
}
-void AltOp::uncompile()
+void AltOp::decompile()
{
if (ins_cache)
{
- exp1->uncompile();
- exp2->uncompile();
+ exp1->decompile();
+ exp2->decompile();
ins_cache = NULL;
}
}
const uint sz2 = exp2->compile(rep, &i[sz1]);
if (must_recompile)
- uncompile();
+ decompile();
return sz1 + sz2;
}
}
-void CatOp::uncompile()
+void CatOp::decompile()
{
if (ins_cache)
{
- exp1->uncompile();
- exp2->uncompile();
+ exp1->decompile();
+ exp2->decompile();
ins_cache = NULL;
}
}
const uint sz = i - ins_cache;
if (must_recompile)
- uncompile();
+ decompile();
return sz;
}
}
-void CloseOp::uncompile()
+void CloseOp::decompile()
{
if (ins_cache)
{
- exp->uncompile();
+ exp->decompile();
ins_cache = NULL;
}
}
const uint sz = i - ins_cache;
if (must_recompile)
- uncompile();
+ decompile();
return sz;
}
}
-void CloseVOp::uncompile()
+void CloseVOp::decompile()
{
if (ins_cache)
{
- exp->uncompile();
+ exp->decompile();
ins_cache = NULL;
}
}
const uint sz = i - ins_cache;
if (must_recompile)
- uncompile();
+ decompile();
return sz;
}
}
-void RuleOp::uncompile()
+void RuleOp::decompile()
{
if (ins_cache)
{
- exp->uncompile();
- ctx->uncompile();
+ exp->decompile();
+ ctx->decompile();
ins_cache = NULL;
}
}
virtual void calcSize(Char*) = 0;
virtual uint fixedLength();
virtual uint compile(Char*, Ins*) = 0;
- virtual void uncompile() = 0;
+ virtual void decompile() = 0;
virtual void display(std::ostream&) const = 0;
friend std::ostream& operator<<(std::ostream&, const RegExp&);
friend std::ostream& operator<<(std::ostream&, const RegExp*);
void calcSize(Char*);
uint fixedLength();
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream &o) const
{
o << "_";
void calcSize(Char*);
uint fixedLength();
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream&) const;
#ifdef PEDANTIC
void split(CharSet&);
void calcSize(Char*);
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream &o) const
{
o << exp << "/" << ctx << ";";
void calcSize(Char*);
uint fixedLength();
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream &o) const
{
o << exp1 << "|" << exp2;
void calcSize(Char*);
uint fixedLength();
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream &o) const
{
o << exp1 << exp2;
void split(CharSet&);
void calcSize(Char*);
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream &o) const
{
o << exp << "+";
void split(CharSet&);
void calcSize(Char*);
uint compile(Char*, Ins*);
- void uncompile();
+ void decompile();
void display(std::ostream &o) const
{
o << exp << "+";