Main Gtk struct.
The data structure representing a lexical scanner.
You should set input_name after creating
the scanner, since it is used by the default message handler when
displaying warnings and errors. If you are scanning a file, the file
name would be a good choice.
The user_data and
max_parse_errors fields are not used.
If you need to associate extra data with the scanner you can place them here.
If you want to use your own message handler you can set the
msg_handler field. The type of the message
handler function is declared by GScannerMsgFunc.
gpointer user_data;
guint max_parse_errors;
guint parse_errors;
const gchar *input_name;
GData *qdata;
GScannerConfig *config;
GTokenType token;
token parsed by the last g_scanner_get_next_token()
GTokenValue value;
value of the last token from g_scanner_get_next_token()
guint line;
line number of the last token from g_scanner_get_next_token()
guint position;
char number of the last token from g_scanner_get_next_token()
GTokenType next_token;
token parsed by the last g_scanner_peek_next_token()
GTokenValue next_value;
value of the last token from g_scanner_peek_next_token()
guint next_line;
line number of the last token from g_scanner_peek_next_token()
guint next_position;
char number of the last token from g_scanner_peek_next_token()
GHashTable *symbol_table;
gint input_fd;
const gchar *text;
const gchar *text_end;
gchar *buffer;
guint scope_id;
GScannerMsgFunc msg_handler;
function to handle GScanner message output
Main Gtk struct. The data structure representing a lexical scanner. You should set input_name after creating the scanner, since it is used by the default message handler when displaying warnings and errors. If you are scanning a file, the file name would be a good choice. The user_data and max_parse_errors fields are not used. If you need to associate extra data with the scanner you can place them here. If you want to use your own message handler you can set the msg_handler field. The type of the message handler function is declared by GScannerMsgFunc. gpointer user_data; guint max_parse_errors; guint parse_errors; const gchar *input_name; GData *qdata; GScannerConfig *config; GTokenType token; token parsed by the last g_scanner_get_next_token() GTokenValue value; value of the last token from g_scanner_get_next_token() guint line; line number of the last token from g_scanner_get_next_token() guint position; char number of the last token from g_scanner_get_next_token() GTokenType next_token; token parsed by the last g_scanner_peek_next_token() GTokenValue next_value; value of the last token from g_scanner_peek_next_token() guint next_line; line number of the last token from g_scanner_peek_next_token() guint next_position; char number of the last token from g_scanner_peek_next_token() GHashTable *symbol_table; gint input_fd; const gchar *text; const gchar *text_end; gchar *buffer; guint scope_id; GScannerMsgFunc msg_handler; function to handle GScanner message output