parameters: (name: str, script: Script, version: str = '1.0.0')
docstring: Registers a script language which can then be embedded into a logic
      program.
  
      Parameters
      ----------
      name
          The name of the script. This name can then be used in the script
          statement in a logic program.
      script
          The class to register.
      version
          The version of the script.
docstring_summary: Registers a script language which can then be embedded into a logic
      program.
docstring_tokens: Registers a script language which can then be embedded into a logic program .
function: def register_script(name: str, script: Script, version: str = '1.0.0') -> None:
      '''
      Registers a script language which can then be embedded into a logic
      program.
  
      Parameters
      ----------
      name
          The name of the script. This name can then be used in the script
          statement in a logic program.
      script
          The class to register.
      version
          The version of the script.
      '''
      c_version = _c_call('char const*', _lib.clingo_add_string, version.encode())
      c_script = _ffi.new('clingo_script_t*')
      c_script[0].execute = _ffi.cast('void*', _lib.pyclingo_script_execute)
      c_script[0].call = _ffi.cast('void*', _lib.pyclingo_script_call)
      c_script[0].callable = _ffi.cast('void*', _lib.pyclingo_script_callable)
      c_script[0].main = _ffi.cast('void*', _lib.pyclingo_script_main)
      c_script[0].free = _ffi.NULL
      c_script[0].version = c_version
      data = _ffi.new_handle(script)
      _GLOBAL_SCRIPTS.append((script, data))
      _handle_error(_lib.clingo_register_script(name.encode(), c_script, data))
function_tokens: def register_script ( name : str , script : Script , version : str = '1.0.0' ) -> None : c_version = _c_call ( 'char const*' , _lib . clingo_add_string , version . encode ( ) ) c_script = _ffi . new ( 'clingo_script_t*' ) c_script [ 0 ] . execute = _ffi . cast ( 'void*' , _lib . pyclingo_script_execute ) c_script [ 0 ] . call = _ffi . cast ( 'void*' , _lib . pyclingo_script_call ) c_script [ 0 ] . callable = _ffi . cast ( 'void*' , _lib . pyclingo_script_callable ) c_script [ 0 ] . main = _ffi . cast ( 'void*' , _lib . pyclingo_script_main ) c_script [ 0 ] . free = _ffi . NULL c_script [ 0 ] . version = c_version data = _ffi . new_handle ( script ) _GLOBAL_SCRIPTS . append ( ( script , data ) ) _handle_error ( _lib . clingo_register_script ( name . encode ( ) , c_script , data ) )