.. java:import:: fr.inria.tapenade.representation ILUtils .. java:import:: fr.inria.tapenade.representation TapEnv .. java:import:: fr.inria.tapenade.representation TapList .. java:import:: fr.inria.tapenade.representation TypeSpec .. java:import:: fr.inria.tapenade.utils ILLang .. java:import:: fr.inria.tapenade.utils Tree .. java:import:: java.io IOException CDecompiler =========== .. java:package:: fr.inria.tapenade.prettyprint :noindex: .. java:type:: public final class CDecompiler extends Decompiler Decompiler for ANSI C. Original author Nicolas Chleq. KEY PRINCIPLE ABOUT WHITE SPACES AND NEWLINES: Decompilation of any sub-tree takes care ONLY of printing from the first non-whitespace-non-newline character to the last non-whitespace-non-newline character of this sub-tree. Therefore, writing the whitespaces and newlines immediately surrounding decompilation of the sub-tree is the task of the parent tree of sub-tree (or parent of parent, etc). Exceptions may exist, but they must remain rare and motivated. Constructors ------------ CDecompiler ^^^^^^^^^^^ .. java:constructor:: public CDecompiler(Printer printer, String htmlMsgFileName) :outertype: CDecompiler Methods ------- decompileTree ^^^^^^^^^^^^^ .. java:method:: @Override public void decompileTree(Tree tree, int lang, boolean inInclude, boolean showMsgs) :outertype: CDecompiler tryFlushComments ^^^^^^^^^^^^^^^^ .. java:method:: @Override protected void tryFlushComments(int indent, boolean prefix) throws IOException :outertype: CDecompiler Prints all waiting line-comments, and resets waiting comments to null. tryFlushCommentsBlock ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override protected void tryFlushCommentsBlock(int indent, boolean prefix) throws IOException :outertype: CDecompiler Prints all waiting block-comments, and resets waiting comments to null.