Commit ceab5cb3 authored by William Bundy's avatar William Bundy

rituals build 102

parent e30771b2
git add --all
git commit -m "rituals build 101"
git commit -m "rituals build 102"
git push
git push github
100
1475270298.210691
101
1475270775.776723
......@@ -507,6 +507,28 @@ void parse_include_directive(Lexer* lex, Token* directive)
end_temp_arena(Temp_Arena);
}
Token* parse_dollarsign_instructions(Token* t)
{
if(t->kind != Token_DollarSign) return t;
Token* next = t->next->next;
Token* head = t;
if(next->hash == hash_literal("exclude")) {
do {
if(next->kind == Token_DollarSign) {
Token* tk = next->next->next;
if(tk->kind == Token_Identifier) {
if(tk->hash == hash_literal("end")) {
head = tk->next->next;
break;
}
}
}
} while(next = next->next);
}
return head;
}
void parse_tokens(Token* start)
{
Token* head = start;
......@@ -647,28 +669,6 @@ struct Proc_Prototype
Proc_Prototype* next;
};
Token* parse_dollarsign_instructions(Token* t)
{
if(t->kind != Token_DollarSign) return t;
Token* next = t->next->next;
Token* head = t;
if(next->hash == hash_literal("exclude")) {
do {
if(next->kind == Token_DollarSign) {
Token* tk = next->next->next;
if(tk->kind == Token_Identifier) {
if(tk->hash == hash_literal("end")) {
head = tk->next->next;
break;
}
}
}
} while(next = next->next);
}
return head;
}
void parse_sing(Token* t, int32 brace_level)
{
if(t->hash == hash_literal("sing")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment