CompileErrors/A0014

From Compost Wiki
Jump to navigation Jump to search

A0014 - Illegal control character in literal; use ASCII instead.

Description

Literals are not allowed to have embedded control characters (such as NUL, BEL, or TAB). This error indicates that such a literal has been found.

Example of Cause

The following literal contains a BEL character.

'Beep: ␇' { A0014 - Illegal control character in literal; use ASCII instead. }

Resolution

Remove the control character from the literal. Ordinarily, replacement with ASCII is preferred.

'Beep: ' ASCII('7') { No error }