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