Cstatement

Single Statement

class ccg.statements.Cstatement.CStatement(render_function, **kwargs)

Bases: object

Statement

Parameters

render_function (Callable[..., str]) –

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

Inheritance diagram of ccg.statements.Cstatement.CDeclaration
class ccg.statements.Cstatement.CDeclaration(render_function, **kwargs)

Bases: ccg.statements.Cstatement.CStatement

Declaration

Definitions are considered as a type of declaration

Parameters

render_function (Callable[..., str]) –

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

Inheritance diagram of ccg.statements.Cstatement.CStatementFreeStyle
class ccg.statements.Cstatement.CStatementFreeStyle(content)

Bases: ccg.statements.Cstatement.CStatement

Parameters

content (str) –

content_render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

Inheritance diagram of ccg.statements.Cstatement.CDeclarationFreeStyle
class ccg.statements.Cstatement.CDeclarationFreeStyle(content)

Bases: ccg.statements.Cstatement.CDeclaration, ccg.statements.Cstatement.CStatementFreeStyle

Parameters

content (str) –

content_render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

Multiple Statements

Inheritance diagram of ccg.statements.Cstatement.CStatements
class ccg.statements.Cstatement.CStatements(statements)

Bases: ccg.statements.Cstatement.CStatement

Statements Collection

Parameters

statements (Sequence[ccg.statements.Cstatement.CStatement]) –

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

append(statement)
Parameters

statement (ccg.statements.Cstatement.CStatement) –

Inheritance diagram of ccg.statements.Cstatement.CDeclarations
class ccg.statements.Cstatement.CDeclarations(declarations)

Bases: ccg.statements.Cstatement.CStatements

Declarations Collection

Parameters

declarations (List[ccg.statements.Cstatement.CDeclaration]) –

append(statement)
Parameters

statement (ccg.statements.Cstatement.CStatement) –

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

Abstract Statements

Inheritance diagram of ccg.statements.Cstatement.CTokenStatement
class ccg.statements.Cstatement.CTokenStatement

Bases: ccg.statements.Cstatement.CStatement, abc.ABC

Statement based on a token

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str

Inheritance diagram of ccg.statements.Cstatement.CCompoundStatement
class ccg.statements.Cstatement.CCompoundStatement(statements)

Bases: abc.ABC, ccg.statements.Cstatement.CStatement

Statement based on statements enclosed in brackets

Parameters

statements (Union[CStatements, List[CStatement]]) –

render(style=<ccg.style.Style object>)
Parameters

style (Style) –

Return type

str