package minijava import lexer.Lexer class Compiler extends Reporter with Lexer { import lexer.Tokens._ def printTokens: Unit = { var t: Token = Token(BAD) do { t = nextToken print(t.kind + "(" + t.row + "," + t.col + ") ") } while(t.kind != EOF) terminateIfErrors } }