blog
Class BLOGLexer

java.lang.Object
  extended by blog.BLOGLexer
All Implemented Interfaces:
ScannerWithLocInfo, java_cup.runtime.Scanner

public class BLOGLexer
extends java.lang.Object
implements ScannerWithLocInfo


Constructor Summary
BLOGLexer(java.io.InputStream instream)
           
BLOGLexer(java.io.Reader reader)
           
 
Method Summary
 java.lang.String getCurFilename()
          Returns the name of the file being scanned.
 int getCurLineNum()
          Returns the number of the line containing the beginning of the last token matched.
 java_cup.runtime.Symbol next_token()
           
 void setFilename(java.lang.String fname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BLOGLexer

public BLOGLexer(java.io.Reader reader)

BLOGLexer

public BLOGLexer(java.io.InputStream instream)
Method Detail

getCurLineNum

public int getCurLineNum()
Description copied from interface: ScannerWithLocInfo
Returns the number of the line containing the beginning of the last token matched. Line numbers are 1-based.

Specified by:
getCurLineNum in interface ScannerWithLocInfo

setFilename

public void setFilename(java.lang.String fname)

getCurFilename

public java.lang.String getCurFilename()
Description copied from interface: ScannerWithLocInfo
Returns the name of the file being scanned.

Specified by:
getCurFilename in interface ScannerWithLocInfo

next_token

public java_cup.runtime.Symbol next_token()
                                   throws java.io.IOException
Specified by:
next_token in interface java_cup.runtime.Scanner
Throws:
java.io.IOException