Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6a15c5d0
Kaydet (Commit)
6a15c5d0
authored
Haz 02, 2005
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Bug #1193001] Make the notation section use the same productionlist env. as other grammar rules
üst
3554cad0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ref1.tex
Doc/ref/ref1.tex
+5
-5
No files found.
Doc/ref/ref1.tex
Dosyayı görüntüle @
6a15c5d0
...
@@ -43,10 +43,10 @@ grammar notation. This uses the following style of definition:
...
@@ -43,10 +43,10 @@ grammar notation. This uses the following style of definition:
\index
{
syntax
}
\index
{
syntax
}
\index
{
notation
}
\index
{
notation
}
\begin{
verbatim
}
\begin{
productionlist
}
name: lc
_
letter (lc
_
letter | "
_
")*
\production
{
name
}{
\token
{
lc
_
letter
}
(
\token
{
lc
_
letter
}
| "
_
")*
}
lc
_
letter: "a"..."z"
\production
{
lc
_
letter
}{
"a"..."z"
}
\end{
verbatim
}
\end{
productionlist
}
The first line says that a
\code
{
name
}
is an
\code
{
lc
_
letter
}
followed by
The first line says that a
\code
{
name
}
is an
\code
{
lc
_
letter
}
followed by
a sequence of zero or more
\code
{
lc
_
letter
}
s and underscores. An
a sequence of zero or more
\code
{
lc
_
letter
}
s and underscores. An
...
@@ -55,7 +55,7 @@ through \character{z}. (This rule is actually adhered to for the
...
@@ -55,7 +55,7 @@ through \character{z}. (This rule is actually adhered to for the
names defined in lexical and grammar rules in this document.)
names defined in lexical and grammar rules in this document.)
Each rule begins with a name (which is the name defined by the rule)
Each rule begins with a name (which is the name defined by the rule)
and
a colon
. A vertical bar (
\code
{
|
}
) is used to separate
and
\code
{
::=
}
. A vertical bar (
\code
{
|
}
) is used to separate
alternatives; it is the least binding operator in this notation. A
alternatives; it is the least binding operator in this notation. A
star (
\code
{
*
}
) means zero or more repetitions of the preceding item;
star (
\code
{
*
}
) means zero or more repetitions of the preceding item;
likewise, a plus (
\code
{
+
}
) means one or more repetitions, and a
likewise, a plus (
\code
{
+
}
) means one or more repetitions, and a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment