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
5d93eef2
Kaydet (Commit)
5d93eef2
authored
Kas 10, 2004
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move table formatting for grammar productions from HTML to CSS
üst
5b000591
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
17 deletions
+40
-17
style.css
Doc/html/style.css
+24
-1
python.perl
Doc/perl/python.perl
+16
-16
No files found.
Doc/html/style.css
Dosyayı görüntüle @
5d93eef2
...
...
@@ -108,6 +108,8 @@ div.note .label { margin-right: 0.5em;
padding
:
0.05in
;
}
.grammar-footer
{
padding
:
0.05in
;
font-size
:
85%
;
}
.grammartoken
{
font-family
:
"lucida typewriter"
,
lucidatypewriter
,
monospace
;
}
.productions
{
background-color
:
#bbeeff
;
}
.productions
a
:active
{
color
:
#ff0000
;
}
...
...
@@ -115,7 +117,28 @@ div.note .label { margin-right: 0.5em;
.productions
a
:visited:hover
{
background-color
:
#99ccff
;
}
.productions
a
:visited
{
color
:
#551a8b
;
}
.productions
a
:link
{
color
:
#0000bb
;
}
.productions
table
{
vertical-align
:
baseline
;
}
.productions
table
{
vertical-align
:
baseline
;
empty-cells
:
show
;
}
.productions
>
table
td
,
.productions
>
table
th
{
padding
:
2px
;
}
.productions
>
table
td
:first-child
,
.productions
>
table
td
:last-child
{
font-family
:
"lucida typewriter"
,
lucidatypewriter
,
monospace
;
}
/* same as the second selector above, but expressed differently for Opera */
.productions
>
table
td
:first-child
+
td
+
td
{
font-family
:
"lucida typewriter"
,
lucidatypewriter
,
monospace
;
vertical-align
:
baseline
;
}
.productions
>
table
td
:first-child
+
td
{
padding-left
:
1em
;
padding-right
:
1em
;
}
.productions
>
table
tr
{
vertical-align
:
baseline
;
}
.email
{
font-family
:
avantgarde
,
sans-serif
;
}
.mailheader
{
font-family
:
avantgarde
,
sans-serif
;
}
...
...
Doc/perl/python.perl
Dosyayı görüntüle @
5d93eef2
...
...
@@ -791,7 +791,7 @@ sub do_cmd_token{
}
$BackpatchGrammarFiles
{
"$CURRENT_FILE"
}
=
1
;
}
return
"<a href=\"$target\">$token</a>"
.
$_
;
return
"<a
class='grammartoken'
href=\"$target\">$token</a>"
.
$_
;
}
sub
do_cmd_grammartoken
{
...
...
@@ -809,7 +809,7 @@ sub do_env_productionlist{
$DefinedGrammars
{
$lang
}
.=
$_
;
return
(
"<dl><dd class=\"grammar\">\n"
.
"<div class=\"productions\">\n"
.
"<table
cellpadding=\"2\"
>\n"
.
"<table>\n"
.
translate_commands
(
translate_environments
(
$_
))
.
"</table>\n"
.
"</div>\n"
...
...
@@ -828,12 +828,12 @@ sub do_cmd_production{
my
$lang
=
$CURRENT_GRAMMAR
;
local
(
$CURRENT_TOKEN
)
=
$token
;
if
(
$lang
eq
'*'
)
{
return
(
"<tr
valign=\"baseline\"
>\n"
.
" <td>
<code>$token</code>
</td>\n"
.
" <td>
::=
</td>\n"
.
" <td>
<code>
"
return
(
"<tr>\n"
.
" <td>
$token
</td>\n"
.
" <td>
::=
</td>\n"
.
" <td>"
.
translate_commands
(
$defn
)
.
"</
code></
td></tr>"
.
"</td></tr>"
.
$_
);
}
my
$target
;
...
...
@@ -844,13 +844,13 @@ sub do_cmd_production{
$target
=
"$CURRENT_FILE\#tok-$lang-$token"
;
}
$TokenToTargetMapping
{
"$CURRENT_GRAMMAR:$token"
}
=
$target
;
return
(
"<tr
valign=\"baseline\"
>\n"
.
" <td><
code><
a id='tok-$token' xml:id='tok-$token'>"
.
"$token</a></
code></
td>\n"
.
" <td>
::=
</td>\n"
.
" <td>
<code>
"
return
(
"<tr>\n"
.
" <td><a id='tok-$token' xml:id='tok-$token'>"
.
"$token</a></td>\n"
.
" <td>
::=
</td>\n"
.
" <td>"
.
translate_commands
(
$defn
)
.
"</
code></
td></tr>"
.
"</td></tr>"
.
$_
);
}
...
...
@@ -858,9 +858,9 @@ sub do_cmd_productioncont{
local
(
$_
)
=
@_
;
my
$defn
=
next_argument
();
$defn
=~
s/^( +)/' ' x length $1/
e
;
return
(
"<tr
valign=\"baseline\"
>\n"
.
" <td>
</td>\n"
.
" <td>
</td>\n"
return
(
"<tr>\n"
.
" <td></td>\n"
.
" <td></td>\n"
.
" <td><code>"
.
translate_commands
(
$defn
)
.
"</code></td></tr>"
...
...
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