Rewritten the expression parser, tldr that '.' is actually right associative binary operator, I brain farted really hard this time

This commit is contained in:
Krzosa Karol
2022-06-01 18:59:38 +02:00
parent 364daed1c7
commit 494a937d1f
5 changed files with 103 additions and 88 deletions

View File

@@ -3,18 +3,4 @@
#define NULL_POINTER 0
#define NULL_LAMBDA 0
//-------------------------------
struct Lex_Stream{
String stream;
int offset;
};
static String lexc(Lex_Stream *s){
return s->stream;
}
static void main(){
String string_to_lex = LIT("Identifier 2425525 Not_Number");
Lex_Stream s = (Lex_Stream ){.stream = string_to_lex};
for(int inf = 0;inf;inf){
//pass
}
}