Skip to content

Commit

Permalink
Revert regression for function arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Feb 12, 2020
1 parent 6700c85 commit a64f5ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chapters/functions.tex
Expand Up @@ -429,7 +429,7 @@ \subsection{Positional or Named Input Arguments of Functions}\doublelabel{positi

named-argument: IDENT "=" function-argument

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

The interpretation of a function call is as follows: First, a list of
Expand Down Expand Up @@ -526,7 +526,7 @@ \subsection{Functional Input Arguments to Functions}\doublelabel{functional-inpu
\begin{enumerate}
\def\labelenumi{\alph{enumi})}
\item
as a function name {[}\lstinline!Parabola! \emph{example below}{]},
as a function type-specifier {[}\lstinline!Parabola! \emph{example below}{]},
\item
as a function partial application (\autoref{function-partial-application} below),
\item
Expand Down
4 changes: 2 additions & 2 deletions chapters/syntax.tex
Expand Up @@ -376,7 +376,7 @@ \subsection{Expressions}\doublelabel{expressions1}

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

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

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

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

0 comments on commit a64f5ff

Please sign in to comment.