pj
Class Rfc.Scanner

java.lang.Object
  extended by pj.Rfc.Scanner
All Implemented Interfaces:
Rfc.yyInput
Enclosing class:
Rfc

public static class Rfc.Scanner
extends Object
implements Rfc.yyInput

embedded pj scanner.


Field Summary
private  int CLASS
           
private  int DECL
           
private  int EPILOG
           
private  int EQUAL
           
private  int ID
           
private  int LEX
           
private  int LINES
           
private  int LIST
           
private  int PKG
           
protected  StringBuffer prolog
          returned with SEP.
private  int PROLOG
           
private  int RULES
           
protected  int token
          returned by token().
protected  Object value
          returned by value().
private  int[] yy_acpt
           
private  boolean yy_at_bol
           
private  int YY_BOL
           
private  char[] yy_buffer
           
private  int yy_buffer_end
           
private  int yy_buffer_index
           
private  int yy_buffer_read
           
private  int YY_BUFFER_SIZE
           
private  int yy_buffer_start
           
private  int[] yy_cmap
           
private  int YY_E_INTERNAL
           
private  int YY_E_MATCH
           
private  int YY_END
           
private  int YY_EOF
           
private  boolean yy_eof_done
           
private  String[] yy_error_string
           
private  int YY_F
           
private  boolean yy_last_was_cr
           
private  int yy_lexical_state
           
private  int YY_NO_ANCHOR
           
private  int YY_NO_STATE
           
private  int YY_NOT_ACCEPT
           
private  int[][] yy_nxt
           
private  BufferedReader yy_reader
           
private  int[] yy_rmap
           
private  int YY_START
           
private  int[] yy_state_dtrans
           
private  int YYINITIAL
           
private  int yyline
           
 
Constructor Summary
private Rfc.Scanner()
           
  Rfc.Scanner(InputStream instream)
           
  Rfc.Scanner(Reader reader)
           
 
Method Summary
 boolean advance()
          move on to next token.
static void main(String[] args)
          quick and dirty test.
 int token()
          current input symbol.
 String toString()
          position for error message.
private  int[][] unpackFromString(int size1, int size2, String st)
           
 Object value()
          null or string associated with current input symbol.
static String visible(String s)
          return a JLex-style visible rendering of a string.
private  int yy_advance()
           
private  char[] yy_double(char[] buf)
           
private  void yy_error(int code, boolean fatal)
           
private  void yy_mark_end()
           
private  void yy_mark_start()
           
private  void yy_move_end()
           
private  void yy_to_mark()
           
private  void yybegin(int state)
           
private  int yylength()
           
private  String yytext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

YY_BUFFER_SIZE

private final int YY_BUFFER_SIZE
See Also:
Constant Field Values

YY_F

private final int YY_F
See Also:
Constant Field Values

YY_NO_STATE

private final int YY_NO_STATE
See Also:
Constant Field Values

YY_NOT_ACCEPT

private final int YY_NOT_ACCEPT
See Also:
Constant Field Values

YY_START

private final int YY_START
See Also:
Constant Field Values

YY_END

private final int YY_END
See Also:
Constant Field Values

YY_NO_ANCHOR

private final int YY_NO_ANCHOR
See Also:
Constant Field Values

YY_BOL

private final int YY_BOL
See Also:
Constant Field Values

YY_EOF

private final int YY_EOF
See Also:
Constant Field Values

token

protected int token
returned by token().


value

protected Object value
returned by value().


prolog

protected StringBuffer prolog
returned with SEP.


yy_reader

private BufferedReader yy_reader

yy_buffer_index

private int yy_buffer_index

yy_buffer_read

private int yy_buffer_read

yy_buffer_start

private int yy_buffer_start

yy_buffer_end

private int yy_buffer_end

yy_buffer

private char[] yy_buffer

yyline

private int yyline

yy_at_bol

private boolean yy_at_bol

yy_lexical_state

private int yy_lexical_state

yy_eof_done

private boolean yy_eof_done

PKG

private final int PKG
See Also:
Constant Field Values

EQUAL

private final int EQUAL
See Also:
Constant Field Values

LIST

private final int LIST
See Also:
Constant Field Values

RULES

private final int RULES
See Also:
Constant Field Values

DECL

private final int DECL
See Also:
Constant Field Values

ID

private final int ID
See Also:
Constant Field Values

LEX

private final int LEX
See Also:
Constant Field Values

YYINITIAL

private final int YYINITIAL
See Also:
Constant Field Values

LINES

private final int LINES
See Also:
Constant Field Values

PROLOG

private final int PROLOG
See Also:
Constant Field Values

EPILOG

private final int EPILOG
See Also:
Constant Field Values

CLASS

private final int CLASS
See Also:
Constant Field Values

yy_state_dtrans

private final int[] yy_state_dtrans

yy_last_was_cr

private boolean yy_last_was_cr

YY_E_INTERNAL

private final int YY_E_INTERNAL
See Also:
Constant Field Values

YY_E_MATCH

private final int YY_E_MATCH
See Also:
Constant Field Values

yy_error_string

private String[] yy_error_string

yy_acpt

private int[] yy_acpt

yy_cmap

private int[] yy_cmap

yy_rmap

private int[] yy_rmap

yy_nxt

private int[][] yy_nxt
Constructor Detail

Rfc.Scanner

public Rfc.Scanner(Reader reader)

Rfc.Scanner

public Rfc.Scanner(InputStream instream)

Rfc.Scanner

private Rfc.Scanner()
Method Detail

main

public static void main(String[] args)
                 throws Exception
quick and dirty test.

Throws:
Exception

token

public int token()
current input symbol.

Specified by:
token in interface Rfc.yyInput
Returns:
current %token or single character.

value

public Object value()
null or string associated with current input symbol.

Specified by:
value in interface Rfc.yyInput
Returns:
value for Rfc.yyInput.token().

toString

public String toString()
position for error message.

Overrides:
toString in class Object

visible

public static String visible(String s)
return a JLex-style visible rendering of a string.


yybegin

private void yybegin(int state)

yy_advance

private int yy_advance()
                throws IOException
Throws:
IOException

yy_move_end

private void yy_move_end()

yy_mark_start

private void yy_mark_start()

yy_mark_end

private void yy_mark_end()

yy_to_mark

private void yy_to_mark()

yytext

private String yytext()

yylength

private int yylength()

yy_double

private char[] yy_double(char[] buf)

yy_error

private void yy_error(int code,
                      boolean fatal)

unpackFromString

private int[][] unpackFromString(int size1,
                                 int size2,
                                 String st)

advance

public boolean advance()
                throws IOException
Description copied from interface: Rfc.yyInput
move on to next token.

Specified by:
advance in interface Rfc.yyInput
Returns:
false if positioned beyond tokens.
Throws:
IOException - on input error.