Skip to content

Commit e3e0377

Browse files
committed
Explain what we assume as a separator in D and fix <Identifier>.
1 parent a1d2eea commit e3e0377

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

specification/chap-opendtrace-dlang.tex

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ \section{Language grammar}
1919

2020
In this section, we will define the grammar of the D language and explain how
2121
each part fits together when interacting with DTrace. Terminals are represented
22-
using lower\_case, while non-terminals are written as CamelCase. We first define
23-
a number of auxiliary constructs to define the rest of the grammar.
22+
using lower\_case, while non-terminals are written as CamelCase. Furthermore, we
23+
define the tab character, `\textbackslash t' and space, ` ' as separators. We first
24+
define a number of auxiliary constructs to define the rest of the grammar.
2425

2526
\begin{grammar}
2627
<letter> ::= `A' ... `Z'
2728
\alt `a' ... `z'
2829
\alt `\_' ;
2930

30-
<sep> ::= ` ' | `\\t' ;
31-
3231
<Word> ::= <letter> \{ <letter> \} ;
3332
\end{grammar}
3433

@@ -57,7 +56,7 @@ \section{Language grammar}
5756
\end{grammar}
5857

5958
\begin{grammar}
60-
<Identifier> ::= <Word> <Integer> ;
59+
<Identifier> ::= <Word> \{ ( <DecDigitWithZero> | <Word> ) \} ;
6160

6261
<VarList> ::= <Identifier> \{ `,' <Identifier> \} ;
6362
\end{grammar}
@@ -133,6 +132,7 @@ \section{Language grammar}
133132
\alt `extern' ;
134133
\end{grammar}
135134

135+
\noindent
136136
Eventhough \texttt{Modifier} is permissive in terms of what keywords are
137137
allowed, the definitions of these keywords are equivalent to those in C and may
138138
only be used when appropriate. The compiler may choose to emit a warning and

0 commit comments

Comments
 (0)