added HCL_EUNDEFVAR

This commit is contained in:
2022-05-05 04:03:56 +00:00
parent c8905fc88e
commit ff089929a9
10 changed files with 114 additions and 15 deletions

View File

@ -79,6 +79,7 @@ static HCL_INLINE void pop (hcl_t* hcl, print_stack_t* info)
enum
{
WORD_UNDEF,
WORD_NIL,
WORD_TRUE,
WORD_FALSE,
@ -103,6 +104,7 @@ static struct
hcl_ooch_t ptr[20];
} word[] =
{
{ 8, { '#', '<', 'U', 'N', 'D', 'D', 'F', '>' } },
{ 4, { 'n', 'u', 'l', 'l' } },
{ 4, { 't', 'r', 'u', 'e' } },
{ 5, { 'f', 'a', 'l', 's', 'e' } },
@ -265,6 +267,10 @@ next:
goto done;
}
case HCL_BRAND_UNDEF:
word_index = WORD_UNDEF;
goto print_word;
case HCL_BRAND_NIL:
word_index = WORD_NIL;
goto print_word;