[pypy-svn] r69262 - pypy/branch/io-lang/pypy/lang/io

david at codespeak.net david at codespeak.net
Fri Nov 13 15:17:04 CET 2009


Author: david
Date: Fri Nov 13 15:17:03 2009
New Revision: 69262

Modified:
   pypy/branch/io-lang/pypy/lang/io/parser.py
Log:
Add Comma token


Modified: pypy/branch/io-lang/pypy/lang/io/parser.py
==============================================================================
--- pypy/branch/io-lang/pypy/lang/io/parser.py	(original)
+++ pypy/branch/io-lang/pypy/lang/io/parser.py	Fri Nov 13 15:17:03 2009
@@ -45,11 +45,13 @@
 # ;
 Terminator = r'(;'+maybe(Whitespace)+')+'
 
+# ,
+Comma = r'\,'
 
 
-rexs = [Identifiers, Whitespace, Number, Hexnumber, Terminator, OpenParen, CloseParen, MonoQuote, TriQuote, Comment]
+rexs = [Identifiers, Whitespace, Number, Hexnumber, Terminator, OpenParen, CloseParen, MonoQuote, TriQuote, Comment, Comma]
 names = ["Identifier", "Whitespace", "Number", "HexNumber", "Terminator",
-         "OpenParen", "CloseParen", "MonoQuote", "TriQuote", "Comment"]
+         "OpenParen", "CloseParen", "MonoQuote", "TriQuote", "Comment", "Comma"]
 ignores = ['Whitespace', 'Comment']
 
 



More information about the Pypy-commit mailing list