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
dea29d0c
Kaydet (Commit)
dea29d0c
authored
Haz 07, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
always inherit from an appropiate base class
üst
bd9508a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
asdl.py
Parser/asdl.py
+2
-4
No files found.
Parser/asdl.py
Dosyayı görüntüle @
dea29d0c
...
...
@@ -10,14 +10,12 @@ browser.
Changes for Python: Add support for module versions
"""
#__metaclass__ = type
import
os
import
traceback
import
spark
class
Token
:
class
Token
(
object
)
:
# spark seems to dispatch in the parser based on a token's
# type attribute
def
__init__
(
self
,
type
,
lineno
):
...
...
@@ -45,7 +43,7 @@ class String(Token):
self
.
value
=
value
self
.
lineno
=
lineno
class
ASDLSyntaxError
:
class
ASDLSyntaxError
(
Exception
)
:
def
__init__
(
self
,
lineno
,
token
=
None
,
msg
=
None
):
self
.
lineno
=
lineno
...
...
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