mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Wrote a basic lexer
This commit is contained in:
24
source/debug.h
Normal file
24
source/debug.h
Normal 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[]);
|
||||
Reference in New Issue
Block a user