| Modifier and Type | Field and Description | 
|---|---|
| static int | CODESEGlexical states | 
| static int | YYEOFThis character denotes the end of file | 
| static int | YYINITIAL | 
ACTION, action_code_part, BAR, CODE, code_part, code_parts, CODE_STRING, COLON, COLON_COLON_EQUALS, COMMA, declares_non_term, declares_term, DOT, empty, EOF, error, EXTENDS, GT, ID, IMPORT, import_id, import_list, import_spec, INIT, init_code, label_id, LBRACK, LEFT, LT, multipart_id, new_non_term_id, new_term_id, NON, non_term_name_list, non_terminal, NONASSOC, NONTERMINAL, nt_id, NT$0, NT$1, NT$10, NT$11, NT$12, NT$13, NT$2, NT$3, NT$4, NT$5, NT$6, NT$7, NT$8, NT$9, opt_label, opt_semi, PACKAGE, package_spec, PARSER, parser_code_part, PERCENT_PREC, preced, PRECEDENCE, precedence_l, precedence_list, prod_part, prod_part_list, production, production_list, QUESTION, RBRACK, rhs, rhs_list, RIGHT, robust_id, SCAN, scan_code, SEMI, spec, STAR, START, start_spec, SUPER, symbol, symbol_id, symbol_list, term_id, term_name_list, TERMINAL, terminal_id, terminal_list, type_id, typearglist, typearguement, wildcard, WITH| Constructor and Description | 
|---|
| Lexer(ComplexSymbolFactory sf) | 
| Lexer(InputStream in)Creates a new scanner. | 
| Lexer(Reader in)Creates a new scanner
 There is also a java.io.InputStream version of this constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | emit_error(String message) | 
| protected void | emit_warning(String message) | 
| Symbol | next_token()Resumes scanning until the next regular expression is matched,
 the end of input is encountered or an I/O-Error occurs. | 
| Symbol | symbol(String name,
      int code) | 
| Symbol | symbol(String name,
      int code,
      String lexem) | 
| 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 | yypushback(int number)Pushes the specified amount of characters back into the input stream. | 
| void | yyreset(Reader reader)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. | 
public static final int YYEOF
public static final int CODESEG
public static final int YYINITIAL
public Lexer(ComplexSymbolFactory sf)
public Lexer(Reader in)
in - the java.io.Reader to read input from.public Lexer(InputStream in)
in - the java.io.Inputstream to read input from.protected void emit_warning(String message)
protected void emit_error(String message)
public final void yyclose()
                   throws IOException
IOExceptionpublic final void yyreset(Reader reader)
reader - the new input streampublic final int yystate()
public final void yybegin(int newState)
newState - the new lexical statepublic final String yytext()
public final char yycharat(int pos)
pos - the position of the character to fetch. 
            A value from 0 to yylength()-1.public final int yylength()
public void yypushback(int number)
number - the number of characters to be read again.
                This number must not be greater than yylength()!public Symbol next_token() throws IOException
next_token in interface ScannerIOException - if any I/O-Error occursCopyright © 2003–2016 Community Z Tools Project. All rights reserved.