repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

commit
187194a
parent
55359b4
author
xplshn
date
2025-08-25 03:31:29 +0000 UTC
remove debug printf

Signed-off-by: xplshn <[email protected]>
1 files changed,  +1, -3
M cmd/gbc/main.go
+1, -3
 1@@ -104,11 +104,10 @@ func main() {
 2 
 3 		// PASS 1: Tokenize and parse initial files to process directives.
 4 		fmt.Println("----------------------")
 5-		fmt.Println("Pass 1: Scanning for directives...")
 6 		records, allTokens := readAndTokenizeFiles(inputFiles, cfg)
 7 		util.SetSourceFiles(records)
 8 		p := parser.NewParser(allTokens, cfg)
 9-		p.Parse() // This populates cfg with directive info.
10+		p.Parse() // populates cfg with directive info
11 
12 		// Now that all directives are processed, determine the final list of source files.
13 		finalInputFiles := processInputFiles(inputFiles, cfg)
14@@ -117,7 +116,6 @@ func main() {
15 		}
16 
17 		// PASS 2: Re-tokenize and parse the complete set of files for compilation.
18-		fmt.Println("Pass 2: Compiling all source files...")
19 		isTyped := cfg.IsFeatureEnabled(config.FeatTyped)
20 		fmt.Printf("Tokenizing %d source file(s) (Typed Pass: %v)...\n", len(finalInputFiles), isTyped)
21 		fullRecords, fullTokens := readAndTokenizeFiles(finalInputFiles, cfg)