WONKY



LOG | FILES | OVERVIEW


F diff --git a/src/semantics/program/program.c b/src/semantics/program/program.c --- a/src/semantics/program/program.c +++ b/src/semantics/program/program.c
}
_Bool has_no_tokens(struct Translation_Data *translation_data)
{
- return token_ptr_has_remaining_tokens(translation_data->token_pointer);
+ return !token_ptr_has_remaining_tokens(translation_data->token_pointer);
}
/*TODO*/
_Bool get_and_check(struct Translation_Data *translation_data,enum LEXER_TYPE kw)
{
struct token *hold_token;
- if(token_ptr_has_remaining_tokens(translation_data->token_pointer))
+ if(!token_ptr_has_remaining_tokens(translation_data->token_pointer))
{
return 0;
}else
F diff --git a/src/syntax/token/token.c b/src/syntax/token/token.c --- a/src/syntax/token/token.c +++ b/src/syntax/token/token.c
struct token_constant *ret;
ret=wonky_malloc(sizeof(struct token_constant));
ret->location=location;
- ret->type=bare_type;/*TODO*/
+ ret->type=KW_CONSTANT;
switch(bare_type)
{