dil.translator.PyTreeEmitter

Members

Classes

PyTreeEmitter
class PyTreeEmitter

Emits a D parse tree as Python code.

Enums

Flags
enum Flags

Enumeration of flags that indicate what's contained in a string.

Functions

analyzeString
Flags analyzeString(cstring str)

Searches for backslashes, quotes and newlines in a string.

escapeDblQuotes
cstring escapeDblQuotes(cstring text)

Replaces \ with \\ and " with \".

quoteOrCountWhitespace
cstring quoteOrCountWhitespace(cstring ws)

Returns the number of characters if ws contains only ' ' chars, otherwise returns ws in single quotes.

Meta

Authors

Aziz Köksal

License

GPL3 $(Maturity average)