hash function for abstract syntax trees

This commit is contained in:
kr.angelov
2013-07-02 19:12:53 +00:00
parent 1b41792237
commit 6971642cc7
4 changed files with 93 additions and 7 deletions

View File

@@ -166,6 +166,12 @@ pgf_expr_eq(PgfExpr e1, PgfExpr e2);
bool
pgf_type_eq(PgfType* t1, PgfType* t2);
GuHash
pgf_literal_hash(GuHash h, PgfLiteral lit);
GuHash
pgf_expr_hash(GuHash h, PgfExpr e);
typedef struct PgfPrintContext PgfPrintContext;
struct PgfPrintContext {