Skip to content

Commit bc84235

Browse files
committed
[chapter01][translating] section 1.3, done
1 parent d0d0dbe commit bc84235

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

chapter01.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ \subsection{展开处理器中的花括号}
425425
\begin{verbatim}
426426
\macro 1 \macro \$
427427
\end{verbatim}
428-
也可以使用配对的花括号包裹一组记号作为其参数
428+
也可以使用配对的花括号包裹一组记号作为宏的参数
429429
\begin{verbatim}
430430
\macro {abc} \macro {d{ef}g}
431431
\end{verbatim}
@@ -445,16 +445,17 @@ \subsection{展开处理器中的花括号}
445445
%the argument of~\cs{a} is \verb>bc{d\stop}e>.
446446
%Only balanced expressions
447447
%are accepted here.
448-
其次,对于带参数的宏,未配对花括号内的表达式不能形成宏参量。例如:
448+
其次,对于带参数的宏,其参数中不得包含未配对的花括号。
449+
例如,如下定义的 \cs{a} 带有一个参数:
450+
包含从 \cs{a} 之后开始,直到遇见第一个花括号外的 \cs{stop} 位置的全部记号。
449451
\begin{verbatim}
450452
\def\a#1\stop{ ... }
451453
\end{verbatim}
452-
它的参量由第一次出现并且不在配对花括号内的 \cs{stop} 之前的记号组成:
453-
对于
454+
对于以下用法,\cs{a} 的参数应当是 \verb>bc{d\stop}e>;
455+
因为宏的参数中花括号必须是配对的。
454456
\begin{verbatim}
455457
\a bc{d\stop}e\stop
456458
\end{verbatim}
457-
其中 \cs{a} 的参量是 \verb>bc{d\stop}e>。这里只接受平衡表达式作为参量。
458459

459460
%\section{The execution processor}
460461
\section{执行处理器}

0 commit comments

Comments
 (0)