]> SALOME platform Git repositories - tools/eficas.git/blobdiff - convert/Parserv5/Translate.py
Salome HOME
pb de check box
[tools/eficas.git] / convert / Parserv5 / Translate.py
index 66ddd27c032117c95d0666cb905a47cbdf54530b..016113de3e5993d192e3d4ea0a6d2d27498b2fdc 100644 (file)
@@ -1,3 +1,24 @@
+# -*- coding: utf-8 -*-
+#            CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+#    1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+
 #!/bin/env python -d
 #!/tools/net/app/Python-1.5.2/bin/python1.5
 
@@ -441,9 +462,9 @@ def define_tagtable():
                       ))
 
     # Sometimes, the user (e.g., me) writes:
-    #  'fred' = Table:
+    #        'fred' = Table:
     # instead of:
-    #  'fred' = Table is:
+    #        'fred' = Table is:
     # Unfortunately, without the "is", it would get too confusing whether
     # we actually wanted an if block...
     t_bad_tableblock = ('tableblock',Table,
@@ -454,9 +475,9 @@ def define_tagtable():
                          ))
 
     # Sometimes, the use (e.g., me again) write:
-    #  'fred' IsIn jim
+    #        'fred' IsIn jim
     # instead of:
-    #  'fred' = IsIn jim
+    #        'fred' = IsIn jim
     # Whilst I'm not entirely convinced that "=" is the best character
     # to use here, I think we do need something!
     t_bad_tuple = ('tuple',Table,
@@ -1496,12 +1517,12 @@ class TupleLine(ContentLine):
             left,right = dict["onfalse"]
             self.onfalse = self.text[left:right]
         else:
-            self.onfalse = None                # "MatchFail"
+            self.onfalse = None                # "MatchFail"
         if dict["ontrue"]:
             left,right = dict["ontrue"]
             self.ontrue = self.text[left:right]
         else:
-            self.ontrue = None                 # "next"
+            self.ontrue = None                 # "next"
 
     def only_in_block(self):
         """Return true if we can only occur inside a block."""
@@ -1632,12 +1653,12 @@ class TuplePlusLine(ContentLine):
             left,right = dict["onfalse"]
             self.onfalse = self.text[left:right]
         else:
-            self.onfalse = None                # "MatchFail"
+            self.onfalse = None                # "MatchFail"
         if dict["ontrue"]:
             left,right = dict["ontrue"]
             self.ontrue = self.text[left:right]
         else:
-            self.ontrue = None                 # "next"
+            self.ontrue = None                 # "next"
 
     def only_in_block(self):
         """Return true if we can only occur inside a block."""
@@ -1846,8 +1867,8 @@ class Block(ContentLine):
                       "SubTable is not allowed outside a block at line %d"%\
                       (self.lineno)
 
-        self.items    = []     # all lines within this block
-        self.business = []     # just those that are "our business"
+        self.items    = []        # all lines within this block
+        self.business = []        # just those that are "our business"
         self.label_dict = {}    # remember our labels and their locations
         self.next_index = 0     # 'business' line indices
         self.inner_indent = None