diff options
Diffstat (limited to 'documentation/chapters/compiler/compiler.tex')
-rw-r--r-- | documentation/chapters/compiler/compiler.tex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/documentation/chapters/compiler/compiler.tex b/documentation/chapters/compiler/compiler.tex index 3de4329..9ebba6d 100644 --- a/documentation/chapters/compiler/compiler.tex +++ b/documentation/chapters/compiler/compiler.tex @@ -1,4 +1,3 @@ -\newcommand{\DiagramScale}{0.6} \chapter{PCL Compiler} PLCc is the PCL compiler. It is located in the \texttt{src/pclc} directory of the Git clone and your path should be set according. This chapter introduces the PCL syntax using \emph{railroad diagrams}. Railroad diagrams illustrate valid PCL and are read from left to right, following the lines as a train would. The symbols in the yellow ovals are to be typed \emph{as is}. The symbols in the tan rectangles references another railroad diagram. The referenced diagram should be used to expand the rectangle in more valid PCL. Hexagons contain \emph{character classes} and specify a range of characters that will be accepted. @@ -94,7 +93,7 @@ component rainbow \caption{\texttt{configuration} : Component configuration.} \label{fig:pcl-config} \end{figure} -A component's configuration is static data that is primarily used for constructing import components. Configuration data is named using identifiers, which can be fully qualified. Figure \ref{fig:pcl-config} shows the configuration syntax. Configuration identifiers may also be used in \emph{if} components see Section \ref{sec:if} for details. A PCL can declare zero or more configuration identifiers. +A component's configuration is static data that is primarily used for constructing import components. Configuration data is named using identifiers, which can be fully qualified. Figure \ref{fig:pcl-config} shows the configuration syntax. Configuration identifiers may also be used in \emph{if} components see Section \ref{sec:if} for details. A PCL component can declare zero or more configuration identifiers. Figure \ref{fig:pcl-config-example} shows an example of configuration being declared in a PCL file. Here the \texttt{parallel\_sleep} component shall be constructed using two configuration values, namely \texttt{sleep\_command} and \texttt{sleep\_time}. \begin{figure}[h!] |