From 83219921b7bf8563e041dab6f4030dd29e2b0076 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Mon, 6 Jan 2025 23:11:10 +0400 Subject: function renamed from `compile` to `generateX86_64` --- src/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.go b/src/main.go index c725403..e4bae4e 100644 --- a/src/main.go +++ b/src/main.go @@ -548,8 +548,8 @@ func mapX86_64linux(op Operation) string{ return buf } -func compile(ops[] Operation, w io.Writer) { - comment_str := ";;" +func generateX86_64(ops[] Operation, w io.Writer) { + assemblerComment := ";;" var strings[][2] string var variables[] string printDumpFunc := false @@ -566,7 +566,7 @@ func compile(ops[] Operation, w io.Writer) { continue } - fmt.Fprintf(w, "\t%s %s\n", comment_str, ops[i].name) + fmt.Fprintf(w, "\t%s %s\n", assemblerComment, ops[i].name) fmt.Fprintf(w, mapX86_64linux(ops[i])) } @@ -617,6 +617,6 @@ func main() { ops := parse(tokens) /* FIXME: check for error */ w := bufio.NewWriter(file) - compile(ops, w) + generateX86_64(ops, w) w.Flush() } -- cgit v1.2.3