Commit e3e0377 1 parent a1d2eea commit e3e0377 Copy full SHA for e3e0377
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,15 @@ \section{Language grammar}
19
19
20
20
In this section, we will define the grammar of the D language and explain how
21
21
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.
24
25
25
26
\begin {grammar }
26
27
<letter> ::= `A' ... `Z'
27
28
\alt `a' ... `z'
28
29
\alt `\_ ' ;
29
30
30
- <sep> ::= ` ' | `\\t' ;
31
-
32
31
<Word> ::= <letter> \{ <letter> \} ;
33
32
\end {grammar }
34
33
@@ -57,7 +56,7 @@ \section{Language grammar}
57
56
\end {grammar }
58
57
59
58
\begin {grammar }
60
- <Identifier> ::= <Word> <Integer> ;
59
+ <Identifier> ::= <Word> \{ ( <DecDigitWithZero> | <Word> ) \} ;
61
60
62
61
<VarList> ::= <Identifier> \{ `,' <Identifier> \} ;
63
62
\end {grammar }
@@ -133,6 +132,7 @@ \section{Language grammar}
133
132
\alt `extern' ;
134
133
\end {grammar }
135
134
135
+ \noindent
136
136
Eventhough \texttt {Modifier } is permissive in terms of what keywords are
137
137
allowed, the definitions of these keywords are equivalent to those in C and may
138
138
only be used when appropriate. The compiler may choose to emit a warning and
You can’t perform that action at this time.
0 commit comments