Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions source/preprocessor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

\begin{bnf}
\nontermdef{module-file}\br
\opt{pp-global-module-fragment} pp-module \opt{group} \opt{pp-private-module-fragment}
\opt{line-directives} \opt{pp-global-module-fragment} pp-module \opt{group} \opt{pp-private-module-fragment}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -55,13 +55,18 @@
\terminal{\# define } identifier lparen \terminal{... )} replacement-list new-line\br
\terminal{\# define } identifier lparen identifier-list \terminal{, ... )} replacement-list new-line\br
\terminal{\# undef \ } identifier new-line\br
\terminal{\# line \ \ } pp-tokens new-line\br
line-directive\br
\terminal{\# error \ } \opt{pp-tokens} new-line\br
\terminal{\# warning} \opt{pp-tokens} new-line\br
\terminal{\# pragma } \opt{pp-tokens} new-line\br
\terminal{\# }new-line
\end{bnf}

\begin{bnf}
\nontermdef{line-directives}\br
line-directive \opt{line-directives}
\end{bnf}

\begin{bnf}
\nontermdef{if-section}\br
if-group \opt{elif-groups} \opt{else-group} endif-line
Expand Down Expand Up @@ -2070,6 +2075,11 @@
\indextext{preprocessing directive!line control}%
\indextext{\idxcode{\#line}|see{preprocessing directive, line control}}

\begin{bnf}
\nontermdef{line-directive}\br
\terminal{\# line} pp-tokens new-line
\end{bnf}

\pnum
The \grammarterm{string-literal} of a
\tcode{\#line}
Expand Down