2016-01-23 03:51:29 -08:00
|
|
|
#ifndef PARSER_MISC_H_
|
|
|
|
#define PARSER_MISC_H_
|
2016-01-23 18:38:39 -08:00
|
|
|
|
2016-01-23 03:51:29 -08:00
|
|
|
#include "macrossTypes.h"
|
|
|
|
|
2016-01-23 17:24:28 -08:00
|
|
|
statementType *addLabelToStatement(labelListType *labelList, statementType *statement);
|
2016-01-23 17:35:49 +01:00
|
|
|
void botch(char *message, ...);
|
2016-01-23 03:51:29 -08:00
|
|
|
void checkDefineAssignmentOperator(assignmentKindType assignmentOperator);
|
2016-01-23 18:38:39 -08:00
|
|
|
statementType *convertDefineToMdefine(statementType *defineStatement);
|
2016-01-23 03:51:29 -08:00
|
|
|
ifStatementBodyType *extractIfBody(statementType *ifStatement);
|
|
|
|
mifStatementBodyType *extractMifBody(statementType *mifStatement);
|
|
|
|
stringType *extractString(operandType *textExpression);
|
2016-01-23 19:18:42 +01:00
|
|
|
void popMacroOrFunctionNestingDepth(void);
|
|
|
|
void pushMacroOrFunctionNestingDepth(void);
|
2016-01-23 03:51:29 -08:00
|
|
|
char *saveString(char *s);
|
|
|
|
|
|
|
|
#endif
|