diff options
Diffstat (limited to 'dimension/parse.h')
-rw-r--r-- | dimension/parse.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dimension/parse.h b/dimension/parse.h index aa6ee58..0b818bf 100644 --- a/dimension/parse.h +++ b/dimension/parse.h @@ -44,4 +44,7 @@ dmnsn_array *dmnsn_parse(const dmnsn_array *tokens); void dmnsn_delete_astree(dmnsn_array *astree); /* Print an S-expression of the abstract syntax tree to `file' */ -void dmnsn_print_astree_sexpr(FILE *file, const dmnsn_array *tokens); +void dmnsn_print_astree_sexpr(FILE *file, const dmnsn_array *astree); + +/* Returns a readable name for a token type (ex. DMNSN_T_FLOAT -> float) */ +const char *dmnsn_astnode_string(dmnsn_astnode_type astnode_type); |