parser: remove NIL as a known value
Not really needed or necessary.
This commit is contained in:
@@ -13,8 +13,6 @@ const char *ast_known_to_cstr(ast_known_t known)
|
||||
{
|
||||
switch (known)
|
||||
{
|
||||
case AST_KNOWN_NIL:
|
||||
return "nil";
|
||||
case AST_KNOWN_PUTSTR:
|
||||
return "putstr";
|
||||
default:
|
||||
|
||||
@@ -125,7 +125,7 @@ parse_err_t parse_symbol(parse_stream_t *stream, ast_node_t *ret)
|
||||
symbol.size = sv_while(symbol, SYMBOL_CHARS);
|
||||
|
||||
// see if symbol is one of the already known symbols
|
||||
static_assert(NUM_AST_KNOWNS == 2, "Expected number of AST KNOWN");
|
||||
static_assert(NUM_AST_KNOWNS == 1, "Expected number of AST_KNOWNs");
|
||||
for (ast_known_t i = 0; i < NUM_AST_KNOWNS; ++i)
|
||||
{
|
||||
const char *possible_known = ast_known_to_cstr(i);
|
||||
|
||||
Reference in New Issue
Block a user