Procs
proc newPrinter(output: Output; vm: Vm; outputDisplay: OutputDisplay): Printer {. ...raises: [], tags: [], forbids: [].}
- Creates a new Printer object with the given output and vm. The vm is used to filter its temporary paths from the output. Source Edit
proc print(self: Printer; evaluation: Evaluation) {....raises: [IOError, KeyError], tags: [WriteIOEffect], forbids: [].}
-
Prints the given evaluation to the output.
`Success`: prints the result with the ok result color scheme. `Error`: prints the result with the error color scheme. `Quit`, `Empty`: do nothing.
Replaces paths on hints, warnings and errors that correspond to the vm's temporary paths with contextual information. It also mutes some error and warning messages from the compiler that are not relevant to the user.
Source Edit