Several shader preprocessor parser fixes and improvements

This commit is contained in:
bitsawer 2023-01-25 18:18:26 +02:00
parent cc7aa72f01
commit 6f5598979f
3 changed files with 114 additions and 35 deletions

View file

@ -93,11 +93,13 @@ private:
int get_line() const;
int get_index() const;
char32_t peek();
int consume_line_continuations(int p_offset);
void get_and_clear_generated(Vector<Token> *r_out);
void backtrack(char32_t p_what);
LocalVector<Token> advance(char32_t p_what);
void skip_whitespace();
bool consume_empty_line();
String get_identifier(bool *r_is_cursor = nullptr, bool p_started = false);
String peek_identifier();
Token get_token();