|
1 |
| -\def\keyword#1{\textbf{#1}} |
2 |
| -\def\builtinId#1{\textbf{#1}} |
3 | 1 | \def\code#1{\textsf{#1}}
|
4 |
| -\def\comment#1{\textit{#1}} |
5 |
| -\def\capt#1{\rmfamily \caption{#1}} |
6 |
| -\def\lt{\ensuremath{<}} |
7 |
| -\def\gt{\ensuremath{>}} |
8 |
| -\def\<{\ensuremath{\langle}} |
9 |
| -\def\>{\ensuremath{\rangle}} |
| 2 | +\def\builtinId#1{\code{\textbf{#1}}} |
| 3 | +\def\keyword#1{\code{\textbf{#1}}} |
10 | 4 | \def\metavar#1{\ensuremath{\mathit{#1}}}
|
11 | 5 |
|
12 | 6 | \def\ABSTRACT{\builtinId{abstract}}
|
|
34 | 28 | \def\ASYNC{\keyword{async}}
|
35 | 29 | \def\AWAIT{\keyword{await}}
|
36 | 30 | \def\BREAK{\keyword{break}}
|
37 |
| -\def\CALL{\keyword{call}} |
38 | 31 | \def\CASE{\keyword{case}}
|
39 | 32 | \def\CATCH{\keyword{catch}}
|
40 | 33 | \def\CLASS{\keyword{class}}
|
|
73 | 66 | \def\WITH{\keyword{with}}
|
74 | 67 | \def\YIELD{\keyword{yield}}
|
75 | 68 |
|
| 69 | +% `call` has no special lexical status, so we just use \code{}. |
| 70 | +\def\CALL{\code{call}} |
| 71 | + |
| 72 | +% Used in regular text to indicate that #1 consists of non-terminals. |
| 73 | +%% TODO(eernst): Update to use grammar font when we start using that; |
| 74 | +%% at this point we just make it "regular text" using \mbox. |
| 75 | +\newcommand{\NonTerminal}[1]{\mbox{#1}} |
| 76 | + |
| 77 | +% Angle brackets used for operators in grammar context. |
| 78 | +\def\lt{\ensuremath{<}} |
| 79 | +\def\gt{\ensuremath{>}} |
| 80 | + |
76 | 81 | % A quoted comma as used in the grammar: needs spacing fix.
|
77 | 82 | \newcommand{\gcomma}{\mbox{`,\hspace{-0.1em}'}}
|
78 | 83 |
|
|
88 | 93 | \newenvironment{rationale}[1]{{\it #1}}{}
|
89 | 94 | \newenvironment{commentary}[1]{{\sf #1}}{}
|
90 | 95 |
|
| 96 | +\newcommand{\flatten}[1]{\ensuremath{\mbox{\it flatten}({#1})}} |
| 97 | + |
| 98 | +% Used as a mini-section marker, indicating visibly that a range of |
| 99 | +% text (usually just a couple of paragraphs) are concerned with one |
| 100 | +% specific topic in a list of similar topics (like many forms of |
| 101 | +% expressions of a similar nature). |
| 102 | +\newcommand{\Case}[1]{\textbf{Case }$\langle\hspace{0.1em}${#1}$\hspace{0.1em}\rangle$\textbf{.}} |
| 103 | + |
91 | 104 | \newenvironment{dartCode}[1][!ht] {
|
92 | 105 | % \begin{verbatim}[#1]
|
93 | 106 | \def\@programcr{\@addfield\strut}
|
|
0 commit comments