diff options
author | eli.bendersky <devnull@localhost> | 2010-06-25 08:25:55 +0300 |
---|---|---|
committer | eli.bendersky <devnull@localhost> | 2010-06-25 08:25:55 +0300 |
commit | ed89049774a2374d34f50372d4cdf638bf559624 (patch) | |
tree | 9cc7fc98198c4648418bb586330c3f2866f4c9a5 /pycparser/c_parser.py | |
parent | 3921e8e23ef7952e2e118e9d534cfc4a221e2450 (diff) | |
download | pycparser-ed89049774a2374d34f50372d4cdf638bf559624.tar.gz |
* Added .hgignore file
* Incorporated a user patch for the do{}while statement, and added some tests of my own to verify it works
Diffstat (limited to 'pycparser/c_parser.py')
-rw-r--r-- | pycparser/c_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py index 8e75519..11115f5 100644 --- a/pycparser/c_parser.py +++ b/pycparser/c_parser.py @@ -996,7 +996,7 @@ class CParser(PLYParser): p[0] = c_ast.While(p[3], p[5], self._coord(p.lineno(1)))
def p_iteration_statement_2(self, p):
- """ iteration_statement : DO statement WHILE LPAREN expression RPAREN """
+ """ iteration_statement : DO statement WHILE LPAREN expression RPAREN SEMI """
p[0] = c_ast.DoWhile(p[5], p[2], self._coord(p.lineno(1)))
def p_iteration_statement_3(self, p):
|