diff options
author | Eli Bendersky <eliben@gmail.com> | 2014-01-25 06:30:53 -0800 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2014-01-25 06:30:53 -0800 |
commit | 8aad3186f39127ec9544f2b8c412de2bb7300fd4 (patch) | |
tree | 45152d3bced1a5344ba36c8839fd5a164ce52af3 /pycparser/_c_ast.cfg | |
parent | e7c55cfb19f420e2407c8ffbffd6b335a5d370dc (diff) | |
download | pycparser-8aad3186f39127ec9544f2b8c412de2bb7300fd4.tar.gz |
Fuller support for qualifiers in array dimensions.
Added a field to the ArrayDecl node and modified tests
Diffstat (limited to 'pycparser/_c_ast.cfg')
-rw-r--r-- | pycparser/_c_ast.cfg | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pycparser/_c_ast.cfg b/pycparser/_c_ast.cfg index 2596de6..b9fce05 100644 --- a/pycparser/_c_ast.cfg +++ b/pycparser/_c_ast.cfg @@ -13,7 +13,11 @@ # License: BSD #----------------------------------------------------------------- -ArrayDecl: [type*, dim*] +# ArrayDecl is a nested declaration of an array with the given type. +# dim: the dimension (for example, constant 42) +# dim_quals: list of dimension qualifiers, to support C99's allowing 'const' +# and 'static' within the array dimension in function declarations. +ArrayDecl: [type*, dim*, dim_quals] ArrayRef: [name*, subscript*] |