Wrote a basic lexer

This commit is contained in:
2022-08-03 09:35:20 +01:00
parent 3cbf7b13eb
commit 3cad70dddd
12 changed files with 884 additions and 0 deletions

24
source/debug.h Normal file
View File

@@ -0,0 +1,24 @@
#pragma once
#include "common.h"
#include "lexer.h"
void printToken(Token* token);
//for processing the command line arguments
typedef struct {
bool error;
bool help;
bool version;
char* filename;
char* source;
bool verbose;
} Command;
extern Command command;
void initCommand(int argc, const char* argv[]);
void usageCommand(int argc, const char* argv[]);
void helpCommand(int argc, const char* argv[]);
void copyrightCommand(int argc, const char* argv[]);