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 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

Members

Variables

buffer
char* buffer;
Undocumented in source.
config
GScannerConfig* config;
Undocumented in source.
inputFd
int inputFd;
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.
scopeId
uint scopeId;
Undocumented in source.
symbolTable
GHashTable* symbolTable;
Undocumented in source.
text
char* text;
Undocumented in source.
textEnd
char* textEnd;
Undocumented in source.
token
GTokenType token;
Undocumented in source.
userData
void* userData;
Undocumented in source.
value
GTokenValue value;
Undocumented in source.

Meta