Skip to content

Commit 9ac9e3f

Browse files
committed
Fixed dot-notation?
1 parent 6ae98bb commit 9ac9e3f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Language.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,9 @@ module Expr =
666666
basic[infix][atr]: !(expr (fun x -> x) (Array.map (fun (a, (atr, l)) -> a, (atr, List.map (fun (s, _, f) -> ostap (- $(s)), f) l)) infix) (primary infix) atr);
667667
primary[infix][atr]:
668668
s:(s:"-"? {match s with None -> fun x -> x | _ -> fun x -> Binop ("-", Const 0, x)})
669-
b:base[infix][Val] is:( "." f:LIDENT args:(-"(" !(Util.list)[parse infix Val] -")")? {`Post (f, args)}
670-
| "[" i:parse[infix][Val] "]" {`Elem i}
671-
| "(" args:!(Util.list0)[parse infix Val] ")" {`Call args}
669+
b:base[infix][Val] is:( "." f:LIDENT (*args:(-"(" !(Util.list)[parse infix Val] -")")?*) {`Post (f, None (*args*))}
670+
| "[" i:parse[infix][Val] "]" {`Elem i}
671+
| "(" args:!(Util.list0)[parse infix Val] ")" {`Call args}
672672
)+
673673
=> {match (List.hd (List.rev is)), atr with
674674
| `Elem i, Reff -> true

0 commit comments

Comments
 (0)