|
libpulsar
A modular compiler for the pulsar programming language
|
Represents lexer state for a single file. More...
#include <lexer.h>
Data Fields | |
| STR | code |
| The source code of the file. | |
| usize | length |
| The length of the file. | |
| struct ps_loc | loc |
| The current location of the lexer. | |
| struct ps_token_arr * | tokens |
| The token array. | |
| struct ps_string_arr * | defines |
| bool | in_comment |
| Whether the lexer is currently in a comment. | |
| usize | par_nesting |
| Nesting level of parentheses. | |
| bool | is_string_escaped |
| Whether the next character in the string should be escaped. | |
| bool | interp_string |
| Whether the lexer is currrently in an interpolated string. | |
| usize | interp_par_nesting |
| The nesting of parentheses at the start of string interpolation. | |
| struct ps_string_arr* ps_lexer_state::defines |
| bool ps_lexer_state::in_comment |
| usize ps_lexer_state::interp_par_nesting |
| bool ps_lexer_state::interp_string |
| bool ps_lexer_state::is_string_escaped |
| usize ps_lexer_state::par_nesting |
| struct ps_token_arr* ps_lexer_state::tokens |