Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c68bae1d78
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (24 sloc) 1.269 kb
At this point we need to make the actual 2d layout that will
interpreted by the 2d interpreter. This is a non-trivial process,
since the placement of each new command is dependent on all the
previous commands, and not in a trivial way. Command boxes could
overlap with each other or perhaps block already placed wires or
arrows.
\paragraph{Modules}
\label{compiler:modules}
In order to cut down on the needed work, we decided to encapsulate
many of our functions in predefined modules. An example of this could
be the multiplication operator which we attempted to write manually,
both to get a sense of how 2D worked, as well as optimizing our use of
time until the layout system was up and running. Even though we had
already specified much of the logic needed for unary multiplication,
the construction was not straightforward. We found the biggest
problem to be flow-control, as this required many wires, even for
small cases, which made the program much harder to write and modify.
We therefore abandoned this approach, even for basic features of our
language, and given the time we would instead have used our layout
system to make all of our needed modules, by specifying the connections.
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:
Jump to Line
Something went wrong with that request. Please try again.