Kaydet (Commit) a610f9f8 authored tarafından Fred Drake's avatar Fred Drake

Added environment for defining PyVM instructions. This is only used in

the libdis.tex file I'm about to check in.

I'm not sure this is really an optimal solution yet, but it may be the best
alternative.  It avoids describing the instructions as either data items or
functions.

This change was discussed with Guido.  (Guido:  Take a look at the LaTeX
output for this; if this is reasonable I'll go ahead and update the perl
code in myformat.perl to match.)
üst b7f1afe4
...@@ -161,6 +161,12 @@ ...@@ -161,6 +161,12 @@
\let\enddatadesc\endfulllineitems \let\enddatadesc\endfulllineitems
% opcodedesc should be called as an \begin{opcodedesc} ... \end{opcodedesc}
\newcommand{\opcodeline}[2]{\item[\code{#1\quad\varvars{#2}}]\ttindex{#1}}
\newcommand{\opcodedesc}[2]{\fulllineitems\opcodeline{#1}{#2}}
\let\endopcodedesc\endfulllineitems
% Define \dataitem{name}: define a data item % Define \dataitem{name}: define a data item
\newcommand{\dataitem}[1]{% \newcommand{\dataitem}[1]{%
\ttindex{#1}% \ttindex{#1}%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment