CompileErrors/A0002

From Compost Wiki
Revision as of 21:54, 13 January 2015 by Danielr (talk | contribs) (Created page with "{{CompileError |errortext = A0002 - Keyword <keyword> expected <number> children, but actually has <number> |description = A0002 is an internal error issued when there is the ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A0002 - Keyword <keyword> expected <number> children, but actually has <number>

Description

A0002 is an internal error issued when there is the wrong number of arguments for a command. This error is often triggered by a preceding A0001 or A0009 grouping error, or an A0005, A0006, or A0007 infix construction error. This error will not normally appear on its own.

Example of Cause

SetFlag expects a single literal argument.

SetFlag('ToolOffsetOn', TRUE) { A0002 - Keyword SETFLAG expected 1 children, but actually has 2. }

Resolution

Resolve any preceding ArgTree errors (in the example case, A0001).

SetFlag('ToolOffsetOn') { No error }