All Packages Class Hierarchy This Package Previous Next Index
Class openjava.main.Scanner
java.lang.Object
|
+----openjava.main.Scanner
- public class Scanner
- extends Object
-
debugLevel
-
-
lexer
-
-
nextToken
- 1-lookahead token
-
oldToken
- last token
-
presentToken
- present token
-
userKeywords
- table for user's keyword
-
userModifiers
-
-
Scanner()
- Constructs this scanner.
-
Scanner(InputStream)
- Constructs this scanner.
-
Scanner(InputStream, String[])
- Constructs this scanner.
-
getToken()
- recognizes the next token and returns the token
-
getTokenID(String)
-
-
setDebug(int)
-
-
setUserKeywords(String[])
-
-
setUserModifiers(String[])
-
lexer
protected Yylex lexer
oldToken
protected Yytoken oldToken
- last token
presentToken
protected Yytoken presentToken
- present token
nextToken
protected Yytoken nextToken
- 1-lookahead token
userKeywords
protected String userKeywords[]
- table for user's keyword
userModifiers
protected String userModifiers[]
debugLevel
protected int debugLevel
Scanner
public Scanner() throws IOException
- Constructs this scanner.
Scanner
public Scanner(InputStream in) throws IOException
- Constructs this scanner.
Scanner
public Scanner(InputStream in,
String keywords[]) throws IOException
- Constructs this scanner.
getToken
public Yytoken getToken() throws IOException
- recognizes the next token and returns the token
setUserKeywords
public void setUserKeywords(String uk[])
setUserModifiers
public void setUserModifiers(String uk[])
getTokenID
public static int getTokenID(String str)
setDebug
public void setDebug(int level)
All Packages Class Hierarchy This Package Previous Next Index