Added function to print ast to user specified file pointer

This commit is contained in:
Kelong Cong
2014-07-15 22:21:54 +01:00
parent 6af8360517
commit 5bd7aaf004
2 changed files with 11 additions and 6 deletions

1
mpc.h
View File

@@ -269,6 +269,7 @@ mpc_ast_t *mpc_ast_state(mpc_ast_t *a, mpc_state_t s);
void mpc_ast_delete(mpc_ast_t *a);
void mpc_ast_print(mpc_ast_t *a);
void mpc_ast_print_to(mpc_ast_t *a, FILE *fp);
/*
** Warning: This function currently doesn't test for equality of the `state` member!