Rewritten the expression parser, tldr that '.' is actually right associative binary operator, I brain farted really hard this time
This commit is contained in:
16
program.c
16
program.c
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user