s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
implement TokensList methods More...
#include "debugmalloc.h"
#include <stdio.h>
#include <stdlib.h>
#include "tokenslist.h"
#include "tokenFunc.h"
#include "logging.h"
Go to the source code of this file.
Macros | |
#define | __USE_MINGW_ANSI_STDIO 1 |
Functions | |
TokensList * | tokenslist_new () |
int | tokenslist_add (TokensList *list, Token t) |
TokensListElement * | tokenslist_remove (TokensList *list, TokensListElement *el) |
void | tokenslist_free (TokensList *list) |
void | tokenslist_debug_print (TokensList *list) |
void | tokenslist_insert (TokensList *list, TokensListElement *pos, TokensList *src) |
int | tokenslist_recognize (TokensList *t) |
#define __USE_MINGW_ANSI_STDIO 1 |
Definition at line 3 of file tokenslist.c.
int tokenslist_add | ( | TokensList * | list, |
Token | t | ||
) |
Definition at line 31 of file tokenslist.c.
References ERROR, TokensList::head, TokensListElement::next, TokensListElement::prev, TokensList::tail, and TokensListElement::token.
void tokenslist_debug_print | ( | TokensList * | list | ) |
Definition at line 89 of file tokenslist.c.
References TokensList::head, LOG, TokensListElement::next, and Token::token_print().
void tokenslist_free | ( | TokensList * | list | ) |
Definition at line 78 of file tokenslist.c.
References TokensList::head, and TokensList::tokenslist_remove().
void tokenslist_insert | ( | TokensList * | list, |
TokensListElement * | pos, | ||
TokensList * | src | ||
) |
Definition at line 97 of file tokenslist.c.
References TokensList::head, TokensListElement::next, TokensListElement::prev, and TokensList::tail.
TokensList* tokenslist_new | ( | ) |
Definition at line 17 of file tokenslist.c.
References ERROR, TokensList::head, and TokensList::tail.
int tokenslist_recognize | ( | TokensList * | t | ) |
Definition at line 117 of file tokenslist.c.
References FAIL, TokensList::head, TokensListElement::next, and Token::token_recognize().
TokensListElement* tokenslist_remove | ( | TokensList * | list, |
TokensListElement * | el | ||
) |
Definition at line 60 of file tokenslist.c.
References TokensList::head, TokensListElement::next, TokensListElement::prev, TokensList::tail, and TokensListElement::token.