2022-04-02 10:10:01 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "token.h"
|
|
|
|
#include "parse.h"
|
|
|
|
|
2022-04-02 10:18:24 +00:00
|
|
|
/**
|
|
|
|
* Please start by reading the code of parseall instead of reading
|
|
|
|
* from top to bottom.
|
|
|
|
*/
|
|
|
|
|
2022-04-02 10:10:01 +00:00
|
|
|
/**
|
|
|
|
* Takes the tokenized program and parses them into an array of trees.
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
parseall(struct parsestate *ps)
|
|
|
|
{
|
|
|
|
struct parsenode *this;
|
|
|
|
|
|
|
|
while (1) {
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|