![]() |
v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
|
Macros | |
#define | as6502_tokenIsEqualToStringLiteral(token, string) as6502_tokenIsEqualToString(token, string, sizeof(string) - 1) |
Does a quick token comparison to a string literal. | |
Functions | |
as6502_token * | as6502_tokenCreate (const char *text, size_t loc, size_t len) |
Creates a single token object. Text is copied up to length indicated by len. | |
as6502_token * | as6502_tokenCopy (as6502_token *original) |
Creates a single token object that is identical to the passed in object, but in a different location. The next pointer is not copied. | |
void | as6502_tokenDestroy (as6502_token *token) |
Destroys a single token object. | |
void | as6502_tokenListDestroy (as6502_token *token) |
Destroys a token and all tokens attached to it by traversing the linked list of tokens. | |
int | as6502_tokenIsEqualToString (as6502_token *token, const char *string, size_t len) |
Does a quick token comparison to a string. | |
void | as6502_stringForTokenList (char *output, size_t len, as6502_token *head) |
Outputs a flat string for a given token list. | |
as6502_token * | as6502_firstTokenOfTypeInList (as6502_token *head, as6502_token_type type) |
Searches through a token list and returns the first token whose type matches the specified as6502_token_type. | |