CompileErrors/A0012

From Compost Wiki
Jump to navigation Jump to search

A0012 - Unexpected end of stream (missing arguments?) - depth <depth>

Description

A0012 is issued when the end of the compile stream (normally the prog file) is encountered while more arguments are still expected, but an argument group has not been opened. If an argument group has been opened, error A0011 will be emitted instead. The "depth" value indicates how many open commands have not been closed.

Example of Cause

SetVar# requires two arguments, a literal and a number.

SetVar# 'X' { A0012 - Unexpected end of stream (missing arguments?) - depth 1 }

Resolution

Add sufficient arguments to satisfy the requirements of each command in the prog.

SetVar# 'X', 1 { No error }