- converted a few more DECORATE files.

- started with the AST converter. So far it only deals with direct function calls with simple constants as parameters.
- added an error condition for the defaults block to get rid of some asserts.
This commit is contained in:
Christoph Oelckers 2016-10-14 00:40:20 +02:00
commit 7de683f9f5
18 changed files with 881 additions and 681 deletions

View file

@ -5,6 +5,8 @@ struct Baggage;
struct FPropertyInfo;
class AActor;
class FxExpression;
typedef TDeletingArray<FxExpression*> FArgumentList;
struct ZCC_StructWork
{
@ -136,6 +138,10 @@ private:
void Error(ZCC_TreeNode *node, const char *msg, ...);
void MessageV(ZCC_TreeNode *node, const char *txtcolor, const char *msg, va_list argptr);
FxExpression *ConvertAST(ZCC_TreeNode *ast);
FxExpression *ConvertNode(ZCC_TreeNode *node);
FArgumentList *ConvertNodeList(ZCC_TreeNode *head);
DObject *Outer;
PSymbolTable *GlobalTreeNodes;
PSymbolTable *OutputSymbols;