Skip to content

Commit

Permalink
Factor out function-partial-application (modelica#2490)
Browse files Browse the repository at this point in the history
* Factor out function-partial-application
Closes modelica#2250
  • Loading branch information
HansOlsson authored Mar 19, 2020
1 parent 4179006 commit 2f0c7ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ \subsection{Positional or Named Input Arguments of Functions}\doublelabel{positi

named-argument: IDENT "=" function-argument

function-argument : function type-specifier "(" [ named-arguments ] ")" | expression
function-argument : function-partial-application | expression
\end{lstlisting}

The interpretation of a function call is as follows: First, a list of
Expand Down
7 changes: 5 additions & 2 deletions chapters/syntax.tex
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ \subsection{Expressions}\doublelabel{expressions1}

function-arguments :
expression [ "," function-arguments-non-first | for for-indices ]
| function type-specifier "(" [ named-arguments ] ")" [ "," function-arguments-non-first ]
| function-partial-application [ "," function-arguments-non-first ]
| named-arguments

function-arguments-non-first :
Expand All @@ -397,7 +397,10 @@ \subsection{Expressions}\doublelabel{expressions1}
named-argument: IDENT "=" function-argument

function-argument :
function type-specifier "(" [ named-arguments ] ")" | expression
function-partial-application | expression

function-partial-application :
function type-specifier "(" [ named-arguments ] ")"

output-expression-list:
[ expression ] { "," [ expression ] }
Expand Down

0 comments on commit 2f0c7ee

Please sign in to comment.