src/compiler/parser.c
static void recover_top_level(void)
{
	while (tok.type != TOKEN_EOF)
	{
		switch (tok.type)
		{
			case TOKEN_FUNC:
			case TOKEN_CONST:
			case TOKEN_TYPEDEF:
			case TOKEN_ERROR:
			case TOKEN_STRUCT:
			case TOKEN_IMPORT:
			case TOKEN_UNION:
			case TOKEN_ENUM:
			case TOKEN_MACRO:
				return;
			default:
				break;
		}
	}
}
/**
 * Walk until we find the first top level construct.
 * (Note that this is the slow path, so no need to inline)
 */
Walk until we find the first top level construct.
(Note that this is the slow path, so no need to inline)
Walk until we find the first top level construct . ( Note that this is the slow path so no need to inline )
static void recover_top_level(void)
{
	while (tok.type != TOKEN_EOF)
	{
		switch (tok.type)
		{
			case TOKEN_FUNC:
			case TOKEN_CONST:
			case TOKEN_TYPEDEF:
			case TOKEN_ERROR:
			case TOKEN_STRUCT:
			case TOKEN_IMPORT:
			case TOKEN_UNION:
			case TOKEN_ENUM:
			case TOKEN_MACRO:
				return;
			default:
				break;
		}
	}
}
static void recover_top_level ( void ) { while ( tok . type != TOKEN_EOF ) { switch ( tok . type ) { case TOKEN_FUNC : case TOKEN_CONST : case TOKEN_TYPEDEF : case TOKEN_ERROR : case TOKEN_STRUCT : case TOKEN_IMPORT : case TOKEN_UNION : case TOKEN_ENUM : case TOKEN_MACRO : return ; default : break ; } } }
Walk until we find the first top level construct.
Walk until we find the first top level construct .