Skip to main content

Compiler Error C0008

Message: Unexpected end-of-file found: '<operator>', '<operator>', or '<operator>' expected

Possible error cause: Syntax error

Error correction: Use the correct syntax.

Example 318. Example of the error:
PROGRAM PLC_PRG
VAR
    x: INT;
    bTest : BOOL;
END_VAR

IF bTest THEN
    x := 9;

Message:

C0008: Unexpected end-of-file found: 'ELSIF', 'ELSE', or 'END_IF' expected