]> granicus.if.org Git - re2c/commitdiff
Renamed 'uncompile' to 'decompile'.
authorUlya Fokanova <skvadrik@gmail.com>
Mon, 20 Jan 2014 11:09:34 +0000 (14:09 +0300)
committerUlya Fokanova <skvadrik@gmail.com>
Mon, 20 Jan 2014 11:09:34 +0000 (14:09 +0300)
re2c/actions.cc
re2c/re.h

index 8c65b793453efd4a360a48ca70da326fa92113fd..c8d28370ae51e3d4d1e0ea29d607adb382c0748c 100644 (file)
@@ -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;
        }
 }
index 870b2f1263a2ed75e929b82c00c9a45c729e2b7a..9a02dd4f280af24eb6a5b5ed5229a0439f64e59a 100644 (file)
--- 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 << "+";