Herb C Reference
Loading...
Searching...
No Matches
token_matchers.c File Reference
#include "include/token_matchers.h"
#include "include/parser.h"
#include "include/token.h"
#include <stdarg.h>
#include <stdbool.h>

Functions

bool token_is (parser_T *parser, token_type_T expected_type)
 
bool token_is_not (parser_T *parser, token_type_T type)
 
bool token_matches_any (token_type_T current_token, token_type_T first_token,...)
 

Function Documentation

◆ token_is()

bool token_is ( parser_T parser,
token_type_T  expected_type 
)

◆ token_is_not()

bool token_is_not ( parser_T parser,
token_type_T  type 
)

◆ token_matches_any()

bool token_matches_any ( token_type_T  current_token,
token_type_T  first_token,
  ... 
)