We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f71e9a commit b0ee12dCopy full SHA for b0ee12d
src/main/java/com/annimon/ownlang/parser/Parser.java
@@ -298,8 +298,11 @@ private Statement statementBody() {
298
}
299
300
private Expression functionChain(Expression qualifiedNameExpr) {
301
- // f1().f2().f3() || f1().key
+ // f1()()() || f1().f2().f3() || f1().key
302
final Expression expr = function(qualifiedNameExpr);
303
+ if (lookMatch(0, TokenType.LPAREN)) {
304
+ return functionChain(expr);
305
+ }
306
if (lookMatch(0, TokenType.DOT)) {
307
final List<Expression> indices = variableSuffix();
308
if (indices == null | indices.isEmpty()) return expr;
0 commit comments