New parser

This commit is contained in:
Valk Richard Li
2019-10-15 22:59:35 +08:00
committed by GitHub
parent 863660065a
commit a81dadc80a
13 changed files with 3875 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
if(this_token.type==__if)
{
parse.push(this_token);
return;
}
elsif(this_token.type==__elsif)
{
parse.push(this_token);
return;
}
else if(this_token.type!=__else)
{
exit(0);
}
elsif(this_token.type==__elsif)
{
parse.push(this_token);
return;
}
elsif(this_token.type==__elsif)
{
parse.push(this_token);
return;
}
else if(this==(1+2+3*1))
{
return nil;
}
else
{
parse.push(this_token);
return;
}
if(!id)
{
exit(0);
}