chore: rename parser to compilation engine

This commit is contained in:
2026-04-21 01:34:51 +01:00
parent 1cd1e23684
commit ba853b24b1
2 changed files with 7 additions and 2 deletions
+7 -2
View File
@@ -8,7 +8,7 @@ import (
"regexp"
"strings"
"github.com/hazemKrimi/jack-compiler/internal/parser"
"github.com/hazemKrimi/jack-compiler/internal/compilation-engine"
"github.com/hazemKrimi/jack-compiler/internal/tokenizer"
)
@@ -26,7 +26,12 @@ func process(inputPath string) error {
return err
}
parsed := parser.ParseTokens(tokens)
parsed, err := parser.ParseTokens(tokens)
if err != nil {
return err
}
outputPath := strings.Replace(inputPath, ".jack", ".xml", 1)
if err := os.WriteFile(outputPath, []byte(parsed), 0644); err != nil {