Skip to content

Can't write miniKotlin function without arguments #3

Description

@AlexKozm

Function definition allows to create functions without parameters:

functionDeclaration
    : FUN IDENTIFIER LPAREN parameterList? RPAREN COLON type block
    ;

Function call does allow to call functions without arguments:

expression
    : IDENTIFIER LPAREN argumentList RPAREN            # FunctionCallExpr

Probably question mark is missing after argumentList:

expression
    : IDENTIFIER LPAREN argumentList? RPAREN           # FunctionCallExpr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions