Skip to content

Commit

Permalink
Fix some white-space irregularities in the grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 4, 2020
1 parent de55f8b commit 1a17c50
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions chapters/syntax.tex
Expand Up @@ -76,7 +76,7 @@ \section{Lexical conventions}\label{lexical-conventions}
\section{Grammar}\label{grammar}
\subsection{Stored Definition -- Within}\label{stored-definition-within}
\begin{lstlisting}[language=grammar]
stored-definition:
stored-definition :
[ within [ name ] ";" ]
{ [ final ] class-definition ";" }
\end{lstlisting}
Expand Down Expand Up @@ -164,19 +164,20 @@ \subsection{Extends}\label{extends}

\subsection{Component Clause}\label{component-clause}
\begin{lstlisting}[language=grammar]
component-clause:
component-clause :
type-prefix type-specifier [ array-subscripts ] component-list

type-prefix :
[ flow | stream ]
[ discrete | parameter | constant ] [ input | output ]

component-list :
component-declaration { "," component-declaration }

component-declaration :
declaration [ condition-attribute ] description

condition-attribute:
condition-attribute :
if expression

declaration :
Expand All @@ -200,7 +201,7 @@ \subsection{Modification}\label{modification}
element-modification-or-replaceable
| element-redeclaration

element-modification-or-replaceable:
element-modification-or-replaceable :
[ each ] [ final ] ( element-modification | element-replaceable )

element-modification :
Expand All @@ -210,7 +211,7 @@ \subsection{Modification}\label{modification}
redeclare [ each ] [ final ]
( short-class-definition | component-clause1 | element-replaceable )

element-replaceable:
element-replaceable :
replaceable ( short-class-definition | component-clause1 )
[ constraining-clause ]

Expand Down Expand Up @@ -287,7 +288,7 @@ \subsection{Equations}\label{equations1}
for-indices :
for-index {"," for-index}

for-index:
for-index :
IDENT [ in expression ]

while-statement :
Expand Down Expand Up @@ -377,7 +378,7 @@ \subsection{Expressions}\label{expressions1}
"(" [ function-arguments ] ")"

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

Expand All @@ -401,7 +402,7 @@ \subsection{Expressions}\label{expressions1}
function-partial-application :
function type-specifier "(" [ named-arguments ] ")"

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

expression-list :
Expand All @@ -417,7 +418,7 @@ \subsection{Expressions}\label{expressions1}
description-string [ annotation-clause ]

description-string :
[ STRING { "+" STRING } ]
[ STRING { "+" STRING } ]

annotation-clause :
annotation class-modification
Expand Down

0 comments on commit 1a17c50

Please sign in to comment.