Scanner
Object Hierarchy:
Description:
[ Compact ]
public class Scanner
Content:
Creation methods:
Methods:
- public void input_file (int input_fd)
- public void sync_file_offset ()
- public void input_text (string text, uint text_len)
- public TokenType peek_next_token ()
- public TokenType get_next_token ()
- public bool eof ()
- public int cur_line ()
- public int cur_position ()
- public TokenType cur_token ()
- public TokenValue cur_value ()
- public uint set_scope (uint scope_id)
- public void scope_add_symbol (uint scope_id, string symbol, void* value)
- public void scope_foreach_symbol (uint scope_id, HFunc func)
- public void* scope_lookup_symbol (uint scope_id, string symbol)
- public void scope_remove_symbol (uint scope_id, string symbol)
- public void* lookup_symbol (string symbol)
- public void warn (string format, ...)
- public void error (string format, ...)
- public void unexp_token (TokenType expected_token, string? identifier_spec, string? symbol_spec, string? symbol_name, string? message, bool is_error)
Fields: