# 0023: Unexpected instruction

The compiler finds an incorrect syntax. It could be an error in a `FOR` loop or a malformed variable declaration.

**Possible solutions:** check the documentation and provide the correct syntax:

[Variable declaration](https://docs.sannybuilder.com/language/data-types/variables#declaring-a-variable-type):

```pascal
var <variable>: <type>
```

or

```pascal
var
  <variable>: <type>
end
```

`FOR` [loop syntax](https://docs.sannybuilder.com/language/control-flow/loops#for..end):

```pascal
FOR <loop variable> = <initial value> TO/DOWNTO <final value> [step = 1]
  <the loop body>
END
```
