at.dms.kjc
Class KjcScanner

java.lang.Object
  extended by at.dms.compiler.antlr.extra.Scanner
      extended by at.dms.kjc.KjcScanner
All Implemented Interfaces:
TokenStream, KjcTokenTypes

public class KjcScanner
extends Scanner
implements KjcTokenTypes

This class is a scanner generated by JFlex 1.3.2 on 4/8/08 7:38 PM from the specification file file:/home/bits8/streamit/regtest/20080408.193104.Tue/streams/src/at/dms/kjc/Kjc.flex


Field Summary
static int CHARLITERAL
           
static int ENDOFLINECOMMENT
           
static int STRINGLITERAL
          lexical states
static int TRADITIONALCOMMENT
           
static int YYEOF
          This character denotes the end of file
static int YYINITIAL
           
 
Fields inherited from class at.dms.compiler.antlr.extra.Scanner
TOKEN_EOF
 
Fields inherited from interface at.dms.kjc.KjcTokenTypes
ASSIGN, BAND, BAND_ASSIGN, BNOT, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, CHARACTER_LITERAL, COLON, COMMA, DEC, DOT, EOF, EQUAL, GE, GT, IDENT, INC, INTEGER_LITERAL, LAND, LBRACK, LCURLY, LE, LITERAL_abstract, LITERAL_boolean, LITERAL_break, LITERAL_byte, LITERAL_case, LITERAL_catch, LITERAL_char, LITERAL_class, LITERAL_const, LITERAL_continue, LITERAL_default, LITERAL_do, LITERAL_double, LITERAL_else, LITERAL_extends, LITERAL_false, LITERAL_final, LITERAL_finally, LITERAL_float, LITERAL_for, LITERAL_goto, LITERAL_if, LITERAL_implements, LITERAL_import, LITERAL_instanceof, LITERAL_int, LITERAL_interface, LITERAL_long, LITERAL_native, LITERAL_new, LITERAL_null, LITERAL_package, LITERAL_private, LITERAL_protected, LITERAL_public, LITERAL_return, LITERAL_short, LITERAL_static, LITERAL_strictfp, LITERAL_super, LITERAL_switch, LITERAL_synchronized, LITERAL_this, LITERAL_throw, LITERAL_throws, LITERAL_transient, LITERAL_true, LITERAL_try, LITERAL_void, LITERAL_volatile, LITERAL_while, LNOT, LOR, LPAREN, LT, MINUS, MINUS_ASSIGN, NOT_EQUAL, NULL_TREE_LOOKAHEAD, PERCENT, PERCENT_ASSIGN, PLUS, PLUS_ASSIGN, QUESTION, RBRACK, RCURLY, REAL_LITERAL, RPAREN, SEMI, SL, SL_ASSIGN, SLASH, SLASH_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, STRING_LITERAL, TOKEN_ASSIGN, TOKEN_BAND, TOKEN_BAND_ASSIGN, TOKEN_BNOT, TOKEN_BOR, TOKEN_BOR_ASSIGN, TOKEN_BSR, TOKEN_BSR_ASSIGN, TOKEN_BXOR, TOKEN_BXOR_ASSIGN, TOKEN_COLON, TOKEN_COMMA, TOKEN_DEC, TOKEN_DOT, TOKEN_EQUAL, TOKEN_GE, TOKEN_GT, TOKEN_INC, TOKEN_LAND, TOKEN_LBRACK, TOKEN_LCURLY, TOKEN_LE, TOKEN_LITERAL_abstract, TOKEN_LITERAL_boolean, TOKEN_LITERAL_break, TOKEN_LITERAL_byte, TOKEN_LITERAL_case, TOKEN_LITERAL_catch, TOKEN_LITERAL_char, TOKEN_LITERAL_class, TOKEN_LITERAL_const, TOKEN_LITERAL_continue, TOKEN_LITERAL_default, TOKEN_LITERAL_do, TOKEN_LITERAL_double, TOKEN_LITERAL_else, TOKEN_LITERAL_extends, TOKEN_LITERAL_false, TOKEN_LITERAL_final, TOKEN_LITERAL_finally, TOKEN_LITERAL_float, TOKEN_LITERAL_for, TOKEN_LITERAL_goto, TOKEN_LITERAL_if, TOKEN_LITERAL_implements, TOKEN_LITERAL_import, TOKEN_LITERAL_instanceof, TOKEN_LITERAL_int, TOKEN_LITERAL_interface, TOKEN_LITERAL_long, TOKEN_LITERAL_native, TOKEN_LITERAL_new, TOKEN_LITERAL_null, TOKEN_LITERAL_package, TOKEN_LITERAL_private, TOKEN_LITERAL_protected, TOKEN_LITERAL_public, TOKEN_LITERAL_return, TOKEN_LITERAL_short, TOKEN_LITERAL_static, TOKEN_LITERAL_strictfp, TOKEN_LITERAL_super, TOKEN_LITERAL_switch, TOKEN_LITERAL_synchronized, TOKEN_LITERAL_this, TOKEN_LITERAL_throw, TOKEN_LITERAL_throws, TOKEN_LITERAL_transient, TOKEN_LITERAL_true, TOKEN_LITERAL_try, TOKEN_LITERAL_void, TOKEN_LITERAL_volatile, TOKEN_LITERAL_while, TOKEN_LNOT, TOKEN_LOR, TOKEN_LPAREN, TOKEN_LT, TOKEN_MINUS, TOKEN_MINUS_ASSIGN, TOKEN_NOT_EQUAL, TOKEN_PERCENT, TOKEN_PERCENT_ASSIGN, TOKEN_PLUS, TOKEN_PLUS_ASSIGN, TOKEN_QUESTION, TOKEN_RBRACK, TOKEN_RCURLY, TOKEN_RPAREN, TOKEN_SEMI, TOKEN_SL, TOKEN_SL_ASSIGN, TOKEN_SLASH, TOKEN_SLASH_ASSIGN, TOKEN_SR, TOKEN_SR_ASSIGN, TOKEN_STAR, TOKEN_STAR_ASSIGN
 
Constructor Summary
KjcScanner(Compiler compiler, InputBuffer buffer)
           
KjcScanner(InputStream in)
          Creates a new scanner.
KjcScanner(Reader in)
          Creates a new scanner There is also a java.io.InputStream version of this constructor.
 
Method Summary
 InputBufferState getBufferState()
          Exports the buffer state.
 Token nextTokenImpl()
          Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
 void yybegin(int newState)
          Enters a new lexical state
 char yycharat(int pos)
          Returns the character at position pos from the matched text.
 void yyclose()
          Closes the input stream.
 int yylength()
          Returns the length of the matched text region.
 void yyreset(Reader reader)
          Closes the current stream, and resets the scanner to read from a new input stream.
 int yystate()
          Returns the current lexical state.
 String yytext()
          Returns the text matched by the current regular expression.
 
Methods inherited from class at.dms.compiler.antlr.extra.Scanner
addComment, getBuffer, getJavadocComment, getLine, getStatementComment, getTokenReference, incrementLine, nextToken, reportTrouble, reportTrouble, setFile, setLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YYEOF

public static final int YYEOF
This character denotes the end of file

See Also:
Constant Field Values

STRINGLITERAL

public static final int STRINGLITERAL
lexical states

See Also:
Constant Field Values

YYINITIAL

public static final int YYINITIAL
See Also:
Constant Field Values

TRADITIONALCOMMENT

public static final int TRADITIONALCOMMENT
See Also:
Constant Field Values

ENDOFLINECOMMENT

public static final int ENDOFLINECOMMENT
See Also:
Constant Field Values

CHARLITERAL

public static final int CHARLITERAL
See Also:
Constant Field Values
Constructor Detail

KjcScanner

public KjcScanner(Compiler compiler,
                  InputBuffer buffer)

KjcScanner

public KjcScanner(Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor.

Parameters:
in - the java.io.Reader to read input from.

KjcScanner

public KjcScanner(InputStream in)
Creates a new scanner. There is also java.io.Reader version of this constructor.

Parameters:
in - the java.io.Inputstream to read input from.
Method Detail

getBufferState

public InputBufferState getBufferState()
Exports the buffer state.

Specified by:
getBufferState in class Scanner

yyclose

public final void yyclose()
                   throws IOException
Closes the input stream.

Throws:
IOException

yyreset

public final void yyreset(Reader reader)
                   throws IOException
Closes the current stream, and resets the scanner to read from a new input stream. All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to YY_INITIAL.

Parameters:
reader - the new input stream
Throws:
IOException

yystate

public final int yystate()
Returns the current lexical state.


yybegin

public final void yybegin(int newState)
Enters a new lexical state

Parameters:
newState - the new lexical state

yytext

public final String yytext()
Returns the text matched by the current regular expression.


yycharat

public final char yycharat(int pos)
Returns the character at position pos from the matched text. It is equivalent to yytext().charAt(pos), but faster

Parameters:
pos - the position of the character to fetch. A value from 0 to yylength()-1.
Returns:
the character at position pos

yylength

public final int yylength()
Returns the length of the matched text region.


nextTokenImpl

public Token nextTokenImpl()
                    throws IOException
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.

Specified by:
nextTokenImpl in class Scanner
Returns:
the next token
Throws:
IOException - if any I/O-Error occurs