harpoon.Tools.Annotation
Interface Lexer

All Known Implementing Classes:
Lexer

public interface Lexer


Method Summary
 void errorMsg(String msg, java_cup.runtime.Symbol info)
          report an error
 LinePos linepos(int character_offset)
           
 java_cup.runtime.Symbol nextToken()
           
 int numErrors()
          return the number of errors reported
 

Method Detail

nextToken

java_cup.runtime.Symbol nextToken()
                                  throws IOException
Throws:
IOException

linepos

LinePos linepos(int character_offset)

errorMsg

void errorMsg(String msg,
              java_cup.runtime.Symbol info)
report an error


numErrors

int numErrors()
return the number of errors reported