Skip to content

Commit

Permalink
Fix capitalization of language. (Should not matter, but still...)
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed May 10, 2019
1 parent 27354a8 commit a996b1a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ \subsection{Component Declaration Static Semantics}\doublelabel{component-declar

\begin{nonnormative}
Example of variables with array dimensions.
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
model ArrayVariants
type T=Real[:];
parameter T x=ones(4);
Expand Down Expand Up @@ -1476,7 +1476,7 @@ \subsection{Real Type}\doublelabel{real-type}
\subsection{Integer Type}\doublelabel{integer-type}
The following is the predefined \lstinline!Integer! type:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type Integer // Note: Defined with Modelica syntax although predefined
IntegerType value; // Accessed without dot-notation
parameter StringType quantity = "";
Expand All @@ -1491,7 +1491,7 @@ \subsection{Integer Type}\doublelabel{integer-type}
\subsection{Boolean Type}\doublelabel{boolean-type}
The following is the predefined \lstinline!Boolean! type:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type Boolean // Note: Defined with Modelica syntax although predefined
BooleanType value; // Accessed without dot-notation
parameter StringType quantity = "";
Expand All @@ -1504,7 +1504,7 @@ \subsection{Boolean Type}\doublelabel{boolean-type}
\subsection{String Type}\doublelabel{string-type}
The following is the predefined \lstinline!String! type:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type String // Note: Defined with Modelica syntax although predefined
StringType value; // Accessed without dot-notation
parameter StringType quantity = "";
Expand All @@ -1517,7 +1517,7 @@ \subsection{String Type}\doublelabel{string-type}
\subsection{Enumeration Types}\doublelabel{enumeration-types}
A declaration of the form
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type E = enumeration([enum-list]);
\end{lstlisting}
Expand All @@ -1528,7 +1528,7 @@ \subsection{Enumeration Types}\doublelabel{enumeration-types}
type E.
{[}\emph{Example}:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type Size = enumeration(small, medium, large, xlarge);
Size t_shirt_size = Size.medium;
\end{lstlisting}
Expand All @@ -1539,7 +1539,7 @@ \subsection{Enumeration Types}\doublelabel{enumeration-types}
literal:
{[}\emph{Example}:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type Size2 = enumeration(small "1st", medium "2nd", large "3rd", xlarge "4th");
\end{lstlisting}
Expand All @@ -1553,21 +1553,21 @@ \subsection{Enumeration Types}\doublelabel{enumeration-types}
an expression {[}\emph{e.g. an array index value}{]}.
{[}\emph{Example}:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type DigitalCurrentChoices = enumeration(zero, one);
// Similar to Real, Integer
\end{lstlisting}
\emph{Setting attributes: }
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type DigitalCurrent = DigitalCurrentChoices(quantity="Current",
start = DigitalCurrentChoices.one, fixed = true);
DigitalCurrent c(start = DigitalCurrent.one, fixed = true);
DigitalCurrentChoices c(start = DigitalCurrentChoices.one, fixed = true);
\end{lstlisting}
\emph{Using enumeration types as expressions:}
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
Real x[DigitalCurrentChoices];
// Example using the type name to represent the range
Expand Down Expand Up @@ -1619,13 +1619,13 @@ \subsection{Enumeration Types}\doublelabel{enumeration-types}
\subsubsection{Attributes of Enumeration Types}\doublelabel{attributes-of-enumeration-types}
For each enumeration:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type E=enumeration(e1, e2, ..., en);
\end{lstlisting}
a new simple type is conceptually defined as
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type E // Note: Defined with Modelica syntax although predefined
EnumType value; // Accessed without dot-notation
parameter StringType quantity = "";
Expand Down Expand Up @@ -1676,12 +1676,12 @@ \subsubsection{Type Conversion of Integer to Enumeration Values}\doublelabel{typ
value of the enumeration type is an error.
\emph{{[}Example: }
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type Colors = enumeration ( RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW );
\end{lstlisting}
\emph{Converting from Integer to Colors: }
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
c = Colors(i);
c = Colors(10); // An error
\end{lstlisting}
Expand Down Expand Up @@ -1737,7 +1737,7 @@ \subsubsection{StateSelect}\doublelabel{stateselect}
\lstinline!stateSelect! attribute of the \lstinline!Real! type. It is used to explicitly control
state selection.
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type StateSelect = enumeration(
never "Do not use as state at all.",
avoid "Use as state, if it cannot be avoided (but only if variable appears
Expand All @@ -1761,7 +1761,7 @@ \subsubsection{AssertionLevel}\doublelabel{assertionlevel}
The predefined \lstinline!AssertionLevel! enumeration type is used together with
\lstinline!assert!, \autoref{assert}.
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
type AssertionLevel=enumeration(warning, error);
\end{lstlisting}
Expand Down
2 changes: 1 addition & 1 deletion chapters/scoping.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ \section{Enclosing Classes}\doublelabel{enclosing-classes}
declaration can refer to a name inherited through an extends-clause.}{]}

{[}\emph{Example}:
\begin{lstlisting}[language=Modelica]
\begin{lstlisting}[language=modelica]
class C1 ... end C1;
class C2 ... end C2;
class C3
Expand Down

0 comments on commit a996b1a

Please sign in to comment.