Fix scope bug, fix parsing bug

This commit is contained in:
Krzosa Karol
2022-06-07 13:37:57 +02:00
parent af5865b059
commit d45ee5ec8a
7 changed files with 8 additions and 22 deletions

View File

@@ -31,8 +31,6 @@ int main(){
}
typedef struct Token{
U8 kind;
U8 *str;
@@ -41,7 +39,6 @@ typedef struct Token{
Number = 0,
};*/
}Token;
String kind_name(U8 kind){
if((kind==0)){
return LIT("<Number>");
@@ -50,12 +47,10 @@ String kind_name(U8 kind){
return LIT("<Unknown>");
}
}
Bool is_numeric(U8 c){
Bool result = ((c>=48)&&(c<=57));
return result;
}
void entry(){
String string_to_lex = LIT("Identifier 2425525 Not_Number");
Token token_array[32];