diff options
Diffstat (limited to 'core/asm')
-rw-r--r-- | core/asm/lex_test.go | 2 | ||||
-rw-r--r-- | core/asm/lexer.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/asm/lex_test.go b/core/asm/lex_test.go index e6901d4e3..16e0ad458 100644 --- a/core/asm/lex_test.go +++ b/core/asm/lex_test.go @@ -22,7 +22,7 @@ import ( ) func lexAll(src string) []token { - ch := Lex("test.asm", []byte(src), false) + ch := Lex([]byte(src), false) var tokens []token for i := range ch { diff --git a/core/asm/lexer.go b/core/asm/lexer.go index 91caeb27b..00526242e 100644 --- a/core/asm/lexer.go +++ b/core/asm/lexer.go @@ -95,7 +95,7 @@ type lexer struct { // lex lexes the program by name with the given source. It returns a // channel on which the tokens are delivered. -func Lex(name string, source []byte, debug bool) <-chan token { +func Lex(source []byte, debug bool) <-chan token { ch := make(chan token) l := &lexer{ input: string(source), |