Merge github.com:orangeduck/mpc
This commit is contained in:
@@ -44,4 +44,5 @@ int main(int argc, char **argv) {
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -53,4 +53,5 @@ int main(int argc, char **argv) {
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -44,4 +44,5 @@ int main(int argc, char **argv) {
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -99,4 +99,5 @@ int main(int argc, char **argv) {
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
4
mpc.h
4
mpc.h
@@ -22,17 +22,17 @@
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
char next;
|
||||
int pos;
|
||||
int row;
|
||||
int col;
|
||||
char next;
|
||||
} mpc_state_t;
|
||||
|
||||
typedef struct {
|
||||
mpc_state_t state;
|
||||
int expected_num;
|
||||
char *filename;
|
||||
char *failure;
|
||||
int expected_num;
|
||||
char **expected;
|
||||
} mpc_err_t;
|
||||
|
||||
|
@@ -18,4 +18,5 @@ void pt_add_test(void (*func)(void), const char* name, const char* suite);
|
||||
void pt_add_suite(void (*func)(void));
|
||||
int pt_run(void);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -9,4 +9,5 @@ int main(int argc, char** argv) {
|
||||
pt_add_suite(suite_regex);
|
||||
pt_add_suite(suite_grammar);
|
||||
return pt_run();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user