Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.

This commit is contained in:
Georg Brandl 2007-03-18 19:01:53 +00:00
parent 428f0641ec
commit dde002899d
9 changed files with 111 additions and 95 deletions

View file

@ -113,7 +113,7 @@ class Transformer:
token.LBRACE: self.atom_lbrace,
token.NUMBER: self.atom_number,
token.STRING: self.atom_string,
token.DOT: self.atom_ellipsis,
token.ELLIPSIS: self.atom_ellipsis,
token.NAME: self.atom_name,
}
self.encoding = None