Improved tokenizer
This commit is contained in:
parent
8549aedc60
commit
8de28852cd
10 changed files with 57 additions and 53 deletions
|
@ -22,7 +22,7 @@ func New() *Assembler {
|
|||
}
|
||||
|
||||
// Finalize generates the final machine code.
|
||||
func (a *Assembler) Finalize(verbose bool) ([]byte, []byte) {
|
||||
func (a *Assembler) Finalize() ([]byte, []byte) {
|
||||
code := make([]byte, 0, len(a.Instructions)*8)
|
||||
data := make(Data, 0, 16)
|
||||
pointers := []Pointer{}
|
||||
|
@ -45,7 +45,7 @@ func (a *Assembler) Finalize(verbose bool) ([]byte, []byte) {
|
|||
}
|
||||
}
|
||||
|
||||
if verbose {
|
||||
if config.Verbose {
|
||||
for _, x := range a.Instructions {
|
||||
log.Info.Println(x.String())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue