|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ffront.Scanner
coins.ffront.F77Scanner
| Field Summary | |
(package private) IoRoot |
io_
|
(package private) java.lang.String[] |
reserved_words
|
(package private) java.lang.String[] |
reserved_words_io
|
(package private) java.lang.String[] |
reserved_words_of_types
|
(package private) java.lang.String[] |
reserved_words_use_with_types
|
(package private) java.lang.String[] |
reserved_words2
|
| Fields inherited from class coins.ffront.Scanner |
FORMAT, FORMAT_H, lineNo, value, YYEOF, YYINITIAL |
| Constructor Summary | |
F77Scanner(java.io.InputStream in,
IoRoot io)
|
|
F77Scanner(java.io.Reader in,
IoRoot io)
Constructer : Wrapper of Scanner class |
|
| Method Summary | |
protected void |
dp(java.lang.String msg)
|
protected java.lang.String |
erase_whitespaces(java.lang.String str)
|
protected byte[] |
f77pp(java.io.Reader rin)
preprocessor of Fortran 77 file |
protected int |
get_close_paren_pos(java.lang.String str)
def(ghi)jk) ^ return this position |
(package private) java.lang.String |
get_next_fortran_line(java.io.BufferedReader in)
|
protected java.lang.String |
is_arith_if(java.lang.String str)
|
protected java.lang.String |
is_assign_stmt(java.lang.String str)
N=X or ASSIGN(X=Y) '=' is not surrounded by paren (X=Y) is not assign statement |
protected java.lang.String |
is_do_stmt(java.lang.String str)
DO L,cond,step |
protected java.lang.String |
is_goto_stmt(java.lang.String str)
GOTO => GOTO N COMP_GOTO => GOTO (L,M,N) T ASSIGN_GOTO => GOTO NAME (L,M,N) |
protected java.lang.String |
is_if_stmt(java.lang.String str)
block if => IF (cond) THEN arith if => IF (cond) L1,L2,L3 logic if => IF (cond) exp goto if |
protected java.lang.String |
is_stmt(java.lang.String str)
|
protected java.lang.String |
is_typed_stmt(java.lang.String str)
ex) TYPE INTEGER X,Y TYPE INTEGER FUNCTION X() TYPE *num FUNCTION X(..) |
static void |
main(java.lang.String[] str)
|
protected java.lang.String |
set_syntax(java.lang.String str)
|
| Methods inherited from class coins.ffront.Scanner |
advance, token, value, yybegin, yycharat, yyclose, yylength, yylex, yypushback, yyreset, yystate, yytext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
IoRoot io_
final java.lang.String[] reserved_words_of_types
final java.lang.String[] reserved_words_use_with_types
final java.lang.String[] reserved_words
final java.lang.String[] reserved_words_io
final java.lang.String[] reserved_words2
| Constructor Detail |
public F77Scanner(java.io.Reader in,
IoRoot io)
throws java.io.IOException,
java.lang.Exception
public F77Scanner(java.io.InputStream in,
IoRoot io)
throws java.io.IOException,
java.lang.Exception
| Method Detail |
protected void dp(java.lang.String msg)
dp in class Scanner
protected byte[] f77pp(java.io.Reader rin)
throws java.io.IOException,
java.lang.Exception
java.io.IOException
java.lang.Exception
java.lang.String get_next_fortran_line(java.io.BufferedReader in)
throws java.io.IOException,
java.lang.Exception
java.io.IOException
java.lang.Exception
protected java.lang.String is_assign_stmt(java.lang.String str)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String is_typed_stmt(java.lang.String str)
protected java.lang.String is_stmt(java.lang.String str)
protected int get_close_paren_pos(java.lang.String str)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String is_arith_if(java.lang.String str)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String is_if_stmt(java.lang.String str)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String is_goto_stmt(java.lang.String str)
protected java.lang.String is_do_stmt(java.lang.String str)
protected java.lang.String erase_whitespaces(java.lang.String str)
protected java.lang.String set_syntax(java.lang.String str)
throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] str)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.Exception
java.io.FileNotFoundException
java.io.IOException
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||