This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separating out a header for assembly.c.
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <stdio.h> | ||
#include "syntax.h" | ||
|
||
#ifndef BABYC_ASSEMBLY_HEADER | ||
#define BABYC_ASSEMBLY_HEADER | ||
|
||
void emit_header(FILE *out, char *name); | ||
|
||
void emit_insn(FILE *out, char *insn); | ||
|
||
void write_header(FILE *out); | ||
|
||
void write_footer(FILE *out); | ||
|
||
void write_syntax(FILE *out, Syntax *syntax); | ||
|
||
void write_assembly(Syntax *syntax); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters