add a asdl bytes type, so Bytes.s be properly typechecked

This commit is contained in:
Benjamin Peterson 2011-08-09 16:08:39 -05:00
parent 18205baf25
commit e249841903
5 changed files with 28 additions and 7 deletions

View file

@ -1,4 +1,4 @@
-- ASDL's four builtin types are identifier, int, string, object
-- ASDL's five builtin types are identifier, int, string, bytes, object
module Python
{
@ -67,7 +67,7 @@ module Python
expr? starargs, expr? kwargs)
| Num(object n) -- a number as a PyObject.
| Str(string s) -- need to specify raw, unicode, etc?
| Bytes(string s)
| Bytes(bytes s)
| Ellipsis
-- other literals? bools?