Skip to content

Commit

Permalink
Update copies of 'equation' and 'statement' rules to match appendix
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Aug 11, 2021
1 parent edc6ce9 commit e39c7d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
15 changes: 8 additions & 7 deletions chapters/equations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ \section{Equations in Equation Sections}\label{equations-in-equation-sections}
syntax is defined as follows:
\begin{lstlisting}[language=grammar]
equation :
( simple-expression "=" expression
| if-equation
| for-equation
| connect-clause
| when-equation
| component-reference function-call-args )
comment
( simple-expression "=" expression
| if-equation
| for-equation
| connect-clause
| when-equation
| component-reference function-call-args
)
description
\end{lstlisting}
No statements are allowed in equation sections, including the assignment
statement using the := operator.
Expand Down
20 changes: 11 additions & 9 deletions chapters/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,17 @@ \section{Statements}\label{statements}
The syntax of statements is as follows:
\begin{lstlisting}[language=grammar]
statement :
( component-reference ( ":=" expression | function-call-args )
| "(" output-expression-list ")" ":=" component-reference function-call-args
| break
| return
| if-statement
| for-statement
| while-statement
| when-statement )
comment
( component-reference ( ":=" expression | function-call-args )
| "(" output-expression-list ")" ":="
component-reference function-call-args
| break
| return
| if-statement
| for-statement
| while-statement
| when-statement
)
description
\end{lstlisting}

\subsection{Simple Assignment Statements}\label{simple-assignment-statements}
Expand Down

0 comments on commit e39c7d6

Please sign in to comment.