summaryrefslogtreecommitdiff
path: root/src/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.mly')
-rw-r--r--src/parser.mly6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.mly b/src/parser.mly
index 3d1eb22..2d9c206 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -236,6 +236,10 @@ common_statement:
{ SWriteCout(a) }
;
+qident:
+| c = TIDENT DOUBLECOLON i = IDENT { c, i }
+;
+
expression:
| e = expression_desc
{ { e_loc = $startpos, $endpos; e_desc = e } }
@@ -283,6 +287,8 @@ primary_desc:
| a = primary LPAREN arg = separated_list(COMMA, expression) RPAREN { ECall(a, arg) }
| a = primary DOT b = IDENT
{ EMember(a, b) }
+| s = qident
+ { let c, i = s in EQIdent(c, i) }
;
runop: