summaryrefslogtreecommitdiffstats
path: root/dimension/parse.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-31 14:05:02 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-31 14:05:02 -0400
commit92efb5d0d7ba0c2b49cf189d5055bc0d9b09994c (patch)
tree8634a495a71efac721e1fae8fd2b61461fbcdea9 /dimension/parse.h
parentff94c67ce80d6baf4677c4564796e163b8d6b5aa (diff)
downloaddimension-92efb5d0d7ba0c2b49cf189d5055bc0d9b09994c.tar.xz
Implement dmnsn_print_astree_sexpr().
Diffstat (limited to 'dimension/parse.h')
-rw-r--r--dimension/parse.h5
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);