summaryrefslogtreecommitdiff
path: root/src/pretty.ml
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-05 22:12:48 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-05 22:12:48 +0100
commit0e7268310b1fcac999a1b3f4e8f6f9b68e7783fc (patch)
tree0435f53348127a2d166ad187ead139ac10cc338e /src/pretty.ml
parent93975bf86887d997f49705b8535c896bc9130467 (diff)
downloadLPC-Projet-0e7268310b1fcac999a1b3f4e8f6f9b68e7783fc.tar.gz
LPC-Projet-0e7268310b1fcac999a1b3f4e8f6f9b68e7783fc.zip
Handle EQIdent (expressions such as A::x and A::f(x, y)
Diffstat (limited to 'src/pretty.ml')
-rw-r--r--src/pretty.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pretty.ml b/src/pretty.ml
index 5e282e3..0501e99 100644
--- a/src/pretty.ml
+++ b/src/pretty.ml
@@ -90,6 +90,7 @@ let rec expr_string e = match e.e_desc with
| ENull -> "NULL"
| EThis -> "this"
| EIdent(i) -> i
+ | EQIdent(i, j) -> i ^ "::" ^ j
| EAssign(k, p) -> "(" ^ (expr_string k) ^ " = " ^ (expr_string p) ^ ")"
| ECall(e, f) -> (expr_string e) ^ "(" ^ (csl expr_string f) ^ ")"
| EUnary(e, f) -> (unop_str e) ^ (expr_string f)