Method | Description | |
---|---|---|
get_char ( Stream fp ) : char | ||
get_token ( Stream tp ) : string | ||
is_char_constant ( string str ) : int | ||
is_comment ( string ident ) : int | ||
is_eof_token ( string tok ) : int | ||
is_identifier ( string str ) : int | ||
is_keyword ( string str ) : int | ||
is_num_constant ( string str ) : int | ||
is_spec_symbol ( string str ) : int | ||
is_str_constant ( string str ) : int | ||
is_token_end ( int str_com_id, char ch ) : int | ||
open_character_stream ( string fname ) : Stream | ||
open_token_stream ( string fname ) : Stream | ||
print_spec_symbol ( string str ) : void | ||
print_token ( string tok ) : int | ||
token_type ( string tok ) : int | ||
unget_char ( char ch, Stream fp ) : char |
Method | Description | |
---|---|---|
Main ( string args ) : void | ||
unget_error ( Stream fp ) : void |
public static get_token ( Stream tp ) : string | ||
tp | Stream | |
return | string |
public static is_char_constant ( string str ) : int | ||
str | string | |
return | int |
public static is_comment ( string ident ) : int | ||
ident | string | |
return | int |
public static is_eof_token ( string tok ) : int | ||
tok | string | |
return | int |
public static is_identifier ( string str ) : int | ||
str | string | |
return | int |
public static is_keyword ( string str ) : int | ||
str | string | |
return | int |
public static is_num_constant ( string str ) : int | ||
str | string | |
return | int |
public static is_spec_symbol ( string str ) : int | ||
str | string | |
return | int |
public static is_str_constant ( string str ) : int | ||
str | string | |
return | int |
public static is_token_end ( int str_com_id, char ch ) : int | ||
str_com_id | int | |
ch | char | |
return | int |
public static open_character_stream ( string fname ) : Stream | ||
fname | string | |
return | Stream |
public static open_token_stream ( string fname ) : Stream | ||
fname | string | |
return | Stream |
public static print_spec_symbol ( string str ) : void | ||
str | string | |
return | void |
public static print_token ( string tok ) : int | ||
tok | string | |
return | int |
public static token_type ( string tok ) : int | ||
tok | string | |
return | int |
public static unget_char ( char ch, Stream fp ) : char | ||
ch | char | |
fp | Stream | |
return | char |