gov.llnl.babel.backend.python

Class PythonClientC

Known Direct Subclasses:
PythonClientCSource, PythonClientStructSource

public class PythonClientC
extends java.lang.Object

Field Summary

protected Context
d_context
protected LanguageWriterForC
d_lw
A writer for the C source file.
protected String
d_shortName
protected Symbol
d_sym

Constructor Summary

PythonClientC(Symbol sym, Context context)

Method Summary

protected void
addInclude(String filename, boolean useGuard)
void
copyComment(Comment c)
Convert a comment into a C string.
void
explainExtensionSource()
Write a comment explaining the contents of the source file to anyone who might happen to read it.
String
getName()
void
pythonDocComment()

Field Details

d_context

protected Context d_context

d_lw

protected LanguageWriterForC d_lw
A writer for the C source file.

d_shortName

protected String d_shortName

d_sym

protected Symbol d_sym

Constructor Details

PythonClientC

public PythonClientC(Symbol sym,
                     Context context)

Method Details

addInclude

protected void addInclude(String filename,
                          boolean useGuard)

copyComment

public void copyComment(Comment c)
Convert a comment into a C string.
Parameters:
c - the comment to convert

explainExtensionSource

public void explainExtensionSource()
Write a comment explaining the contents of the source file to anyone who might happen to read it.

getName

public final String getName()

pythonDocComment

public void pythonDocComment()