GScanner

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

Members

Variables

config
GScannerConfig* config;
Undocumented in source.
inputName
char* inputName;
Undocumented in source.
line
uint line;
Undocumented in source.
maxParseErrors
uint maxParseErrors;
Undocumented in source.
msgHandler
GScannerMsgFunc msgHandler;
Undocumented in source.
nextLine
uint nextLine;
Undocumented in source.
nextPosition
uint nextPosition;
Undocumented in source.
nextToken
GTokenType nextToken;
Undocumented in source.
nextValue
GTokenValue nextValue;
Undocumented in source.
parseErrors
uint parseErrors;
Undocumented in source.
position
uint position;
Undocumented in source.
qdata
GData* qdata;
Undocumented in source.
token
GTokenType token;
Undocumented in source.
userData
void* userData;
Undocumented in source.
value
GTokenValue value;
Undocumented in source.

Meta