<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compost.gibbscam.com/index.php?action=history&amp;feed=atom&amp;title=CompileErrors%2FA0016</id>
	<title>CompileErrors/A0016 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compost.gibbscam.com/index.php?action=history&amp;feed=atom&amp;title=CompileErrors%2FA0016"/>
	<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=CompileErrors/A0016&amp;action=history"/>
	<updated>2026-12-06T00:47:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://compost.gibbscam.com/index.php?title=CompileErrors/A0016&amp;diff=5723&amp;oldid=prev</id>
		<title>Danielr: Created page with &quot;{{CompileError |errortext = A0016 - &lt;Message&gt;. |description = A0016 is issued when a subroutine definition fails to parse.  A variety of messages may be issued by this error; ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compost.gibbscam.com/index.php?title=CompileErrors/A0016&amp;diff=5723&amp;oldid=prev"/>
		<updated>2015-01-14T02:01:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CompileError |errortext = A0016 - &amp;lt;Message&amp;gt;. |description = A0016 is issued when a subroutine definition fails to parse.  A variety of messages may be issued by this error; ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{CompileError&lt;br /&gt;
|errortext = A0016 - &amp;lt;Message&amp;gt;.&lt;br /&gt;
|description = A0016 is issued when a subroutine definition fails to parse.  A variety of messages may be issued by this error; read the message for details.&lt;br /&gt;
&lt;br /&gt;
Possible messages:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Purported sub definition is not really a sub definition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** This is an internal error and likely indicates a bug in the compiler.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sub definition is syntactically invalid&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** The subroutine definition failed to parse.  Currently, a subroutine definition must match the following case-insensitive regular expression: &amp;lt;code&amp;gt;(^[\w_]+[\?\#\$]?)\s*(?:\[\s*(?:(\w*)\s*\:\s*([\w_]+)[\s\,]*)+\])?\:&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Could not identify sub name in sub definition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** The subroutine name was missing or failed to parse.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sub definition must have the same number of argument type declarations as arguments&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** The subroutine had a different number of argument types than arguments.  Each argument must have exactly one associated argument type.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Only NUM and BOOL type sub arguments are supported (requested: &amp;lt;format&amp;gt;)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** An argument type other than NUM or BOOL was specified.&lt;br /&gt;
* Messages related to low-level exceptions thrown during the parsing attempt.&lt;br /&gt;
&lt;br /&gt;
|exampletext = The following subroutine definition is malformed because it contains a # in the name.&lt;br /&gt;
|examplecode = Some#Subroutine[Num: Arg1]: { A0016 - Sub definition is syntactically invalid: Some#Subroutine[Num: Arg1]: }&lt;br /&gt;
&lt;br /&gt;
RETURN&lt;br /&gt;
|resolutiontext = Correct the syntax of the subroutine definition.&lt;br /&gt;
|resolutioncode = SomeSubroutine[Num: Arg1]: { No error }&lt;br /&gt;
&lt;br /&gt;
RETURN&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Danielr</name></author>
	</entry>
</feed>