Set the current language for procedures that output a language dependent string
'language' |
The language name. Must be one of |
Return a string that is a valid comment in the current language.
'c' |
The string to use as a comment character (overriding current language). |
'text' |
The string to be commented. |
Return the cannonical file extension for the current language.
'kind' |
Must be one of the strings |
Output 'text', indented to the current indent level. Each 'text'
argument is followed by a newline.
Indent level can be changed by passing an absolute level with #'n', or
incremented or decremented with ++
or --
.
'text' |
The string to output indented. |
This command, spelled with 3 dashes (-
), return a string of length
'column' (70 by default), starting with 'text' and filled with the
last character of the 'filler' string.
'text' |
The text to fill. |
'filler' |
The filler character. |
'column' |
The desired length of the returned string. |
Chop a string into lines of length 'column' (70 by default), prefixed with 'prefix' (empty by default). The string is split at spaces by default, or at 'sep' if given.
'text' |
The text to fill. |
'prefix' |
A string prefixed to each line. |
'sep' |
The separator for breaking text. |
'column' |
The desired maximum length of each line |
Return the cannonical name of the 'string' or the genom3
'object',
according to the current language.
If a regular string is given, this procedure typically maps IDL ::
scope
separator into the native scope separator symbol for the current language.
If a codel object is given, this procedure returns the symbol name of the
codel for the current language.
'string' |
The name to convert. |
'object' |
A |
Return a string containing a universally unique representation of the name of the 'type' object.
'type' |
A 'type' object. |
Generate and return a string containing the mapping of 'type' or 'codel' objects for the current language, or of all types if no argument is given. The returned string is a valid source code for the language.
'type' |
A 'type' object. |
'locations' |
A boolean variable controlling the generation of type location information (#line directives for cpp). |
Return the abstract declarator for 'type' or for a variable 'var' of that type, in the current language.
'type' |
A 'type' object. |
'var' |
A string representing the name of a variable of type 'type'. |
'qualifier' |
Optional qualifier of type 'type', e.g. const. |
Return an expression evaluating to the address of a variable in the current language.
'type' |
A 'type' object. |
'var' |
A string representing the name of a variable of type 'type'. |
Return an expression dereferencing a parameter passed by value or reference, in the current language.
'type' |
A 'type' object. |
'kind' |
Must be |
'var' |
A string representing the name of a parameter of type 'type'. |
Return an expression that declares a parameter 'var' of type 'type', passed by value or reference according to 'kind'.
'type' |
A 'type' object. |
'kind' |
Must be |
'var' |
A string representing the name of a variable of type 'type'. |
Return an expression that declares a return value of type 'type', returned by value or reference according to 'kind'.
'type' |
A 'type' object. |
'kind' |
Must be |
Return an expression that passes 'var' of type 'type' as a parameter, by value or reference according to 'kind'.
'type' |
A 'type' object. |
'kind' |
Must be |
'var' |
A string representing the name of a variable of type 'type'. |
Return the language construction to access a member of a 'type'. 'mlist'
is a list interpreted as follow: if it starts with a letter, 'type' should
be an aggregate type (like struct
); if it starts with a numeric digit,
'type' should be an array type (like sequence
).
'type' |
A 'type' object. |
'mlist' |
A list of hierachical members to access. |
Return the signature of a codel in the current language. If separator is
given, it is a string that is inserted between the return type of the codel
and the codel name (for instance, a \n
in C so that the symbol name is
guaranteed to be on the first column).
'codel' |
A 'codel' object. |
'separator' |
A string, inserted between the return type and the codel symbol name. |
'location' |
A boolean indicating whether to generate |
Return a string corresponding to the invocation of a codel in the current language.
'codel' |
A 'codel' object. |
'params' |
The list of parameters passed to the codel. Each element of this list must
be a valid string in the current language corresponding to each parameter
value or reference to be passed to the codel ( |