-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreasm.h
More file actions
20 lines (16 loc) · 724 Bytes
/
Copy pathpreasm.h
File metadata and controls
20 lines (16 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PREASM_H
#define PREASM_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "filefunctions.h"
#include "macrofunctions.h"
#include "defs.h"
#include "firstpass.h"
/*The Pre Assembler handles the process of macro expansion. Main function to open the as file and create an am file*/
int pre_assembler(char *filename, MacroNode *head);
/*Loops over every line in the .as file and expands created macros. Outputs .am file with macros expanded
the .am file will be used in the next passes*/
int macro_expansion(FILE *input_file, FILE *output_file, MacroNode *head);
int process_line(MacroNode *head, FILE *output_file, char *word, int *in_macro_creation, char *line_copy, ErrorObject *error);
#endif