var_c(str_t name_ptr, str_t name_end)
;scope_c::find
.
The two pointers name_ptr
and name_end
together define the name of the variable:
name_ptr
points at the first character of the variable
name in the buffer of the lexical analyzer,
and name_end
points at one character after the
last character of the variable name.
This constructor will copy the variable name,
because the buffer of the lexical scanner will change.
The copying is done with dynamic memory,
so there is no real restriction on the length of variable names.
However,
empty variable names are forbidden.
str_t name(void)
;void print(void)
;