Test now prints out list of tokens

This commit is contained in:
2022-08-10 15:02:08 -04:00
parent 2220b95cd2
commit 040e14d27c
3 changed files with 92 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package lexer
import "io"
import "fmt"
// import "fmt"
import "github.com/sashakoshka/arf/file"
import "github.com/sashakoshka/arf/types"
@@ -33,7 +33,7 @@ func (lexer *LexingOperation) tokenize () (err error) {
if err != nil { return }
for {
fmt.Println(string(lexer.char))
// fmt.Println(string(lexer.char))
lowercase := lexer.char >= 'a' && lexer.char <= 'z'
uppercase := lexer.char >= 'A' && lexer.char <= 'Z'