diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-31 14:05:02 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-31 14:05:02 -0400 |
commit | 92efb5d0d7ba0c2b49cf189d5055bc0d9b09994c (patch) | |
tree | 8634a495a71efac721e1fae8fd2b61461fbcdea9 /dimension/parse.h | |
parent | ff94c67ce80d6baf4677c4564796e163b8d6b5aa (diff) | |
download | dimension-92efb5d0d7ba0c2b49cf189d5055bc0d9b09994c.tar.xz |
Implement dmnsn_print_astree_sexpr().
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); |