Skip to content

Commit

Permalink
finalizing the lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
omdxp committed Mar 2, 2024
1 parent 887d10b commit 9fb98db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ int compile_file(const char *filename, const char *out_filename, int flags)
return COMPILER_FAILED_WITH_ERRORS;
}

process->token_vec = lex_process->token_vec;

// Perform parsing

// Perfom code generation
Expand Down
2 changes: 2 additions & 0 deletions compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ struct compile_process
const char *abs_path;
} cfile;

// The vector of tokens from lexical analysis
struct vector *token_vec;
FILE *ofile;
};

Expand Down

0 comments on commit 9fb98db

Please sign in to comment.