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 filename
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;
unused
guint max_parse_errors;
unused
guint parse_errors;
g_scanner_error() increments this field
const gchar *input_name;
name of input stream, featured by the default message handler
GData *qdata;
quarked data
GScannerConfig *config;
link into the scanner configuration
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()
GScannerMsgFunc msg_handler;
handler function for _warn and _error
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 filename 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; unused guint max_parse_errors; unused guint parse_errors; g_scanner_error() increments this field const gchar *input_name; name of input stream, featured by the default message handler GData *qdata; quarked data GScannerConfig *config; link into the scanner configuration 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() GScannerMsgFunc msg_handler; handler function for _warn and _error