class PRETTY_PRINTER
Summary
Overview
creation features
exported features
To run pretty in a STRING buffer:
  • expression_in (client_buffer: STRING, expression: EXPRESSION)
    After this call, the prettyfied version of expression has been appended in the client_buffer.
indent_level: INTEGER_32
effective function
The current indent_level.
set_indent_level (il: INTEGER_32)
effective procedure
To be called each time we need a blank left margin of il characters '%T'.
zen_mode: BOOLEAN
effective function
Are we in the "-zen" mode?
default_mode: BOOLEAN
effective function
Are we in the "-default" mode?
end_mode: BOOLEAN
effective function
Are we in the "-end" mode?
parano_mode: BOOLEAN
effective function
Are we in the "-parano" mode?
print_end_of_statement: BOOLEAN
effective function
Do we have to print the end of a statement according to the current mode?
print_end_of_feature: BOOLEAN
effective function
Do we have to print the end of a feature according to the current mode?
put_end_of (what: STRING)
effective procedure
Short-hand to tag the end of what.
keyword (k: STRING)
effective procedure
Add keyword k.
semi_colon_flag: BOOLEAN
writable attribute
When the current instruction may add a following semi_colon (i.e. when this is not the last one of some compound).
set_semi_colon_flag (v: BOOLEAN)
effective procedure
put_character (c: CHARACTER)
effective procedure
put_string (s: STRING)
effective procedure
skip_one_line
effective procedure
Add an empty line in the output only if it is necessary (i.e. if there is no empty line already skipped).%
skip_two_lines
effective procedure
Add two empty lines in the ouput only if it is necessary.
put_type_mark (type_mark: TYPE_MARK)
effective procedure
wrap_limit: INTEGER_32
constant attribute
column: INTEGER_32
effective function
The current column (the left-most column number is 1).
expression_in (client_buffer: STRING, expression: EXPRESSION)
effective procedure
After this call, the prettyfied version of expression has been appended in the client_buffer.