SpiderScript - Restructured to be able to keep bytecode and AST in memory at one...
[tpg/acess2.git] / Usermode / Libraries / libspiderscript.so_src / common.h
1 /*
2  * SpiderScript
3  * - By John Hodge (thePowersGang)
4  */
5 #ifndef _COMMON_H_
6 #define _COMMON_H_
7
8 #include <spiderscript.h>
9
10 typedef struct sScript_Function tScript_Function;
11 typedef struct sScript_Arg      tScript_Arg;
12
13 struct sSpiderScript
14 {
15         tSpiderVariant  *Variant;
16         tScript_Function        *Functions;
17         tScript_Function        *LastFunction;
18         char    *CurNamespace;  //!< Current namespace prefix (NULL = Root) - No trailing .
19 };
20
21 struct sScript_Arg
22 {
23          int    Type;
24         char    *Name;
25 };
26
27 struct sScript_Function
28 {
29         tScript_Function        *Next;
30         // char *Namespace;
31         char    *Name;
32
33          int    ReturnType;
34         
35         struct sAST_Node        *ASTFcn;
36         struct sBC_Function     *BCFcn;
37
38          int    ArgumentCount;
39         tScript_Arg     Arguments[];
40 };
41
42 #endif
43

UCC git Repository :: git.ucc.asn.au