original_docstring: 
          Read the input variables from a string
          
docstring: Read the input variables from a string
docstring_tokens: Read the input variables from a string
code: def read_string(self,inputfile):
          """
          Read the input variables from a string
          """
          var_real     = re.findall(self._variaexp + self._spacexp + '='+ self._spacexp +
                                    self._numexp + self._spacexp + '([A-Za-z]+)?',inputfile)
          var_string   = re.findall(self._variaexp + self._spacexp + '='+ self._spacexp + self._stringexp, inputfile)
          var_array    = re.findall(self._arrayexp,inputfile)
          var_complex  = re.findall(self._variaexp + self._spacexp + '='+ self._spacexp + self._complexexp + self._spacexp + '([A-Za-z]+)?', inputfile)
          var_runlevel = re.findall(self._runexp + self._spacexp, inputfile)
  
          def clean(a):
              """
              clean the variables according to the type of data
              """
              a = a.strip()
              if a.replace('.','',1).isdigit():
                  if "." in a: return float(a)
                  else:        return int(a)
              return a
  
          # Determination of the arguments
          for key in self._runlevels:
              if key in var_runlevel:
                  self.arguments.append(key)
  
          #float variables
          for var in var_real:
              name, value, unit = var
              self[name] = [float(value),unit]
  
          #string variables
          for var in var_string:
              name, string = var
              self[name] = string
  
          #complex variables
          for var in var_complex:
              name, real, imag, unit = var
              self[name] = [complex(float(real),float(imag)),unit]
  
          #array variables
          for var in var_array:
              name, array, unit = var
              array = [clean(val) for val in array.split('|')[:-1]]
              self[name] = [array,unit]
  
          return {"arguments": self.arguments, "variables": self.variables}
code_tokens: def read_string ( self , inputfile ) : var_real = re . findall ( self . _variaexp + self . _spacexp + '=' + self . _spacexp + self . _numexp + self . _spacexp + '([A-Za-z]+)?' , inputfile ) var_string = re . findall ( self . _variaexp + self . _spacexp + '=' + self . _spacexp + self . _stringexp , inputfile ) var_array = re . findall ( self . _arrayexp , inputfile ) var_complex = re . findall ( self . _variaexp + self . _spacexp + '=' + self . _spacexp + self . _complexexp + self . _spacexp + '([A-Za-z]+)?' , inputfile ) var_runlevel = re . findall ( self . _runexp + self . _spacexp , inputfile ) def clean ( a ) : """
              clean the variables according to the type of data
              """ a = a . strip ( ) if a . replace ( '.' , '' , 1 ) . isdigit ( ) : if "." in a : return float ( a ) else : return int ( a ) return a for key in self . _runlevels : if key in var_runlevel : self . arguments . append ( key ) for var in var_real : name , value , unit = var self [ name ] = [ float ( value ) , unit ] for var in var_string : name , string = var self [ name ] = string for var in var_complex : name , real , imag , unit = var self [ name ] = [ complex ( float ( real ) , float ( imag ) ) , unit ] for var in var_array : name , array , unit = var array = [ clean ( val ) for val in array . split ( '|' ) [ : - 1 ] ] self [ name ] = [ array , unit ] return { "arguments" : self . arguments , "variables" : self . variables }
short_docstring: Read the input variables from a string
short_docstring_tokens: Read the input variables from a string
comment: """
          Read the input variables from a string
          """$SEP$"""
              clean the variables according to the type of data
              """$SEP$# Determination of the arguments$SEP$#float variables$SEP$#string variables$SEP$#complex variables$SEP$#array variables