For the complete documentation index, see llms.txt. This page is also available as Markdown.

Lexer warnings (GPC10xx)

GPC1000 — Unexpected Character

Unexpected character '{char}' will be ignored.

Severity: Warning

The scanner encountered a character that is not part of any GPC token (for example a stray @ or a non-ASCII symbol outside a string or comment). The character is skipped and scanning continues, so this alone never fails a build — but it usually points at a typo or pasted content that will also confuse the parser.


GPC1001 — Number Will Be Truncated

The value '{value}' is out of range for integer values. It will be truncated to {truncated} after first having been rounded to {rounded}.

Severity: Warning

A floating-point literal (including scientific notation like 1e12) rounds to an integer that does not fit the target integer width (16-bit or 32-bit depending on script mode). The compiler first rounds the value, then masks it down to fit, so the constant your script actually uses is {truncated} — usually not what was intended.


GPC1002 — Number Will Be Rounded

The value '{value}' will be rounded to {rounded}.

Severity: Warning

GPC has no floating-point type. A decimal literal such as 1.5 is rounded to the nearest integer at scan time. If you need fractional precision, scale the value (e.g. work in tenths) instead.


GPC1003 — Too Many Bits (16-bit)

Severity: Warning

A binary literal (0b...) in a 16-bit script specifies more than 16 binary digits. The value is still parsed if it fits numerically; otherwise GPC1108 follows.


GPC1004 — Too Many Bits (32-bit)

Severity: Warning

Same as GPC1003, but for 32-bit scripts: a binary literal with more than 32 digits.


GPC1006 — Unterminated String (End of File)

Or:

Severity: Warning

The scanner reached the end of the file while inside a string literal — the closing " is missing. This is the warning-severity variant, emitted when the compiler can recover from the unterminated string; normally the error variant GPC1102 is emitted instead. In recovery mode the leading quote is discarded and scanning resumes right after it.


GPC1007 — Unterminated String (Newline)

Or:

Severity: Warning

Same as GPC1006, but the string was broken by a line break: GPC strings cannot span multiple lines. Warning-severity variant of GPC1103.

Last updated