Skip to content

Commit

Permalink
renames transformer -> translator
Browse files Browse the repository at this point in the history
  • Loading branch information
nesaro committed Nov 3, 2014
1 parent 9b4e7d6 commit 957e70d
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pydsl/File/Python.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_python_file(moduleobject):
elif iclass in ["PythonGrammar"]:
from pydsl.Grammar.Definition import PythonGrammar
return PythonGrammar(resultdic)
elif iclass == "PythonTransformer":
elif iclass == "PythonTranslator":
return resultdic
elif iclass == "parsley":
from pydsl.Grammar.Parsley import ParsleyGrammar
Expand Down
2 changes: 1 addition & 1 deletion pydsl/Translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#You should have received a copy of the GNU General Public License
#along with pydsl. If not, see <http://www.gnu.org/licenses/>.

"""Python Transformers"""
"""Python Translators"""

__author__ = "Nestor Arocha"
__copyright__ = "Copyright 2008-2014, Nestor Arocha"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ def function(input):
return input


iclass = "PythonTransformer"
iclass = "PythonTranslator"
inputdic = {"input":"cstring"}
outputdic = {"output":"cstring"}
2 changes: 1 addition & 1 deletion tests/unit/test_Parsley.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def testDate(self):

def testCalculator(self):
import parsley
G=load_python_file("pydsl/contrib/transformer/calculator.py")
G=load_python_file("pydsl/contrib/translator/calculator.py")
T=translator_factory(G)
self.assertEqual(T("1+1"),2)

Expand Down

0 comments on commit 957e70d

Please sign in to comment.