Added comments
This commit is contained in:
parent
d3bd4b4594
commit
2937e438fe
3 changed files with 2 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ typedef struct tvm_lexer_s
|
|||
tvm_lexer_t* lexer_create();
|
||||
void lexer_destroy(tvm_lexer_t* l);
|
||||
|
||||
/* Tokenize the character array "source" into lines and tokens */
|
||||
int lex(tvm_lexer_t* lexer, char* source);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@ static void parse_instructions(tvm_program_t* p, const char** tokens, tvm_memory
|
|||
tvm_program_t* create_program()
|
||||
{
|
||||
tvm_program_t* p = (tvm_program_t*)calloc(1, sizeof(tvm_program_t));
|
||||
if(!p) return NULL;
|
||||
|
||||
p->label_htab = create_htab();
|
||||
|
||||
return p;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "tvm_memory.h"
|
||||
|
||||
/* Initialize our stack by setting the base pointer and stack pointer */
|
||||
void create_stack(tvm_memory_t* mem, size_t size);
|
||||
|
||||
void stack_push(tvm_memory_t* mem, int* item);
|
||||
|
|
|
|||
Loading…
Reference in a new issue