next up previous contents
Next: Translation of the overall Up: Basic Translation Scheme Previous: Translation of the on   Contents

Translation of the at construct

Figure 4.12 represents a schema for translating the at construct. Note that pre-translation will have reduced $ x$ to a simple expression. The coordinate and local subscript associated with the specified location is returned by the method, location(), which is a member of the Range class. It takes one argument, the global subscript, and returns an object of class Location . The global index for the index $ i$ is the value of glb. This value is used in evaluating the global index expression $ i\verb$\lq $$. The local subscript for the index $ i$ is the value of sub. This value is used in computation of offsets generated when $ i$ is used as an array subscript. The shift step for the index $ i$ is the value of shf. This value is used in computation of offsets associated with shifted index subscripts. The dimension for the index $ i$ is the value of dim. One possible later use of this value is in computation the distribution group of a section subscripted with $ i$.

Figure 4.13: Translation of overall construct.

SOURCE:

TRANSLATION:

$\displaystyle \begin{minipage}[t]{\linewidth}\small\begin{tabbing}
\verb$Block...
...[{S}\left\vert{p}\right.\right]$\ \\
\verb$}$
\end{tabbing}
\end{minipage}
$

where:



next up previous contents
Next: Translation of the overall Up: Basic Translation Scheme Previous: Translation of the on   Contents
Bryan Carpenter 2004-06-09