Skip to content

Commit

Permalink
don't actually call scanner when compiling (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobertlo committed Nov 23, 2024
1 parent fa3bb24 commit 4870069
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,11 @@ func CompileWarrior(r io.Reader, config SimulatorConfig) (WarriorData, error) {
return WarriorData{}, err
}

scanner := newSymbolScanner(newBufTokenReader(tokens))
_, err = scanner.ScanInput()
if err != nil {
return WarriorData{}, fmt.Errorf("symbol scanner: %s", err)
}
// scanner := newSymbolScanner(newBufTokenReader(tokens))
// _, err = scanner.ScanInput()
// if err != nil {
// return WarriorData{}, fmt.Errorf("symbol scanner: %s", err)
// }

parser := newParser(newBufTokenReader(tokens))
sourceLines, metadata, err := parser.parse()
Expand Down

0 comments on commit 4870069

Please sign in to comment.