Package analysis :: Package output :: Package generators :: Module C :: Class DefinitionsGenerator
[show private | hide private]
[frames | no frames]

Class DefinitionsGenerator

Generator --+        
            |        
 RawGenerator --+    
                |    
       CGenerator --+
                    |
                   DefinitionsGenerator


A generator for C definitions: actual function bodies and so on.
Method Summary
  __init__(self, declarations, counter)
  class_definition(self, name)
  constant(self, type_name, number, value)
  function_definition(self, name, argnames, locals, code_generator)
  get_const_value(self, value)
  locals(self, locals, native, function_locals)
Write the given 'locals' (a list of 2-tuples each containing a name and a list of nodes).
  main_definition(self, name, code_generator)
  method_definition(self, name)
  module_definition(self, name)
  object_type_definition(self, name, class_name)
  stack(self, highest)
  _is_class(self, nodes)
  _is_function(self, nodes)
  _is_module(self, nodes)
  _is_specialised_function(self, nodes)
    Inherited from CGenerator
  end_guard(self, module_name)
  function_signature(self, name, argnames)
  get_output(self)
  include(self, module_name)
  main_signature(self, name)
  start_guard(self, module_name)
  _translate(self, name)
Return a translation of 'name' compatible with C syntax.
    Inherited from RawGenerator
  write(self, *args)
  writeln(self, *args)
    Inherited from Generator
  dedent(self)
  indent(self)
  _ls(self)

Method Details

locals(self, locals, native=0, function_locals=0)

Write the given 'locals' (a list of 2-tuples each containing a name and a list of nodes).

Specially generate magic values for function, class and module identifiers. NOTE: This doesn't work with nodes which could be mixtures of NOTE: functions, classes and instances.

Generated by Epydoc 2.1 on Fri May 19 01:52:26 2006 http://epydoc.sf.net