Class: ImgToScript::Languages::MK90Basic::Formatters::Minificator

Inherits:
Formatter show all
Defined in:
lib/img_to_script/languages/mk90_basic/formatters/minificator.rb

Overview

The aim of the minificator is to make the output as compact as possible, and so to save space at the MPO-10 cart.

The minificator:

1. doesn't put spaces (as MK90's BASIC lexer ignores them);
2. adds as many characters to a line as possible.
   This minimizes the number of CR+LF sequences.

Constant Summary collapse

SEP_BETWEEN_STATEMENTS =
":"

Instance Attribute Summary

Attributes inherited from Formatter

#script

Method Summary

Methods inherited from Formatter

#format