From: Ulya Fokanova Date: Mon, 20 Jan 2014 11:09:34 +0000 (+0300) Subject: Renamed 'uncompile' to 'decompile'. X-Git-Tag: 0.13.7.1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99a84304e7b5435fafd5a9e9b72b191c7855951a;p=re2c Renamed 'uncompile' to 'decompile'. --- diff --git a/re2c/actions.cc b/re2c/actions.cc index 8c65b793..c8d28370 100644 --- a/re2c/actions.cc +++ b/re2c/actions.cc @@ -108,7 +108,7 @@ uint NullOp::compile(Char*, Ins*) return 0; } -void NullOp::uncompile() +void NullOp::decompile() { ; } @@ -303,13 +303,13 @@ uint MatchOp::compile(Char *rep, Ins *i) } if (must_recompile) - uncompile(); + decompile(); return size; } } -void MatchOp::uncompile() +void MatchOp::decompile() { ins_cache = NULL; } @@ -457,18 +457,18 @@ uint AltOp::compile(Char *rep, Ins *i) 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; } } @@ -511,18 +511,18 @@ uint CatOp::compile(Char *rep, Ins *i) 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; } } @@ -556,17 +556,17 @@ uint CloseOp::compile(Char *rep, Ins *i) 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; } } @@ -622,17 +622,17 @@ uint CloseVOp::compile(Char *rep, Ins *i) 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; } } @@ -1075,18 +1075,18 @@ uint RuleOp::compile(Char *rep, Ins *i) 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; } } diff --git a/re2c/re.h b/re2c/re.h index 870b2f12..9a02dd4f 100644 --- a/re2c/re.h +++ b/re2c/re.h @@ -177,7 +177,7 @@ public: 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*); @@ -210,7 +210,7 @@ public: void calcSize(Char*); uint fixedLength(); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream &o) const { o << "_"; @@ -238,7 +238,7 @@ public: void calcSize(Char*); uint fixedLength(); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream&) const; #ifdef PEDANTIC @@ -288,7 +288,7 @@ public: void split(CharSet&); void calcSize(Char*); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream &o) const { o << exp << "/" << ctx << ";"; @@ -361,7 +361,7 @@ public: void calcSize(Char*); uint fixedLength(); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream &o) const { o << exp1 << "|" << exp2; @@ -413,7 +413,7 @@ public: void calcSize(Char*); uint fixedLength(); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream &o) const { o << exp1 << exp2; @@ -458,7 +458,7 @@ public: void split(CharSet&); void calcSize(Char*); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream &o) const { o << exp << "+"; @@ -507,7 +507,7 @@ public: void split(CharSet&); void calcSize(Char*); uint compile(Char*, Ins*); - void uncompile(); + void decompile(); void display(std::ostream &o) const { o << exp << "+";