A language describing text operations on lines of text

Truncate long lines and add 3 dots at the end of the line

This script will truncate long lines and add 3 dots at the end of the line.
Just insert your text in the box with the label Text to process and it will be processed immediately - you don't even have to click a button.

Grammar for building a program