aboutsummaryrefslogtreecommitdiff
path: root/pycparser/c_ast.py
diff options
context:
space:
mode:
authoreli.bendersky <devnull@localhost>2011-10-16 05:50:43 +0200
committereli.bendersky <devnull@localhost>2011-10-16 05:50:43 +0200
commit91c0aa3eab9781f4e3a5814f0154d51d25df4de8 (patch)
treec35163fff8c5a1a6103895c2371bbcaadd7550ab /pycparser/c_ast.py
parent4afc9f28d90b3e437fcbf1c038f7a7544c8903aa (diff)
downloadpycparser-91c0aa3eab9781f4e3a5814f0154d51d25df4de8.tar.gz
* Added EmptyStatement node to represent an empty statement (sole ';'), with tests and c-to-c support
* Added sys.path update in _build_tables.py to enable it to run correctly from the pycparser folder
Diffstat (limited to 'pycparser/c_ast.py')
-rw-r--r--pycparser/c_ast.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pycparser/c_ast.py b/pycparser/c_ast.py
index 9ebdb74..ad35209 100644
--- a/pycparser/c_ast.py
+++ b/pycparser/c_ast.py
@@ -322,6 +322,15 @@ class EllipsisParam(Node):
attr_names = ()
+class EmptyStatement(Node):
+ def __init__(self, coord=None):
+ self.coord = coord
+
+ def children(self):
+ return ()
+
+ attr_names = ()
+
class Enum(Node):
def __init__(self, name, values, coord=None):
self.name = name