Comments (9)
void* foo(int a, int b) attribute((nonnull(1));
looks like it has unbalanced parens.
Unrelatedly, please use triple-backquotes to quote your code on Github, so it doesn't come out a mess like it does now.
from pycparserext.
Perhaps a balanced parenthesis still has a problem.
from pycparserext.
I finally managed to write a production to reduce the expressions of above form.
Below is the patch that reduces statements
declarator: pointer direct_declarator attributes_opt
| pointer attributes_opt direct_declarator
The generators are crashing while emitting statements of the above form. Can you please help me fix this ?
http://pastebin.com/WKz9d4PG
from pycparserext.
Thanks for the patch! I've merged what I believe to be a fixed version.
from pycparserext.
Please note that c generator isn't working for funcs with attributes.
On Mar 18, 2016 6:54 AM, "Andreas Klöckner" [email protected]
wrote:
Thanks for the patch! I've merged what I believe to be a fixed version.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
from pycparserext.
Can you provide commit access as I have added couple of Gnu C extensions ?
On Friday, March 18, 2016, Andreas Klöckner [email protected]
wrote:
Thanks for the patch! I've merged what I believe to be a fixed version.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#14 (comment)
from pycparserext.
Please note that c generator isn't working for funcs with attributes.
Could you provide a test?
Can you provide commit access as I have added couple of Gnu C extensions ?
Just fork the repo and send a pull request.
from pycparserext.
I have already added the tests in the test file.
On Friday, March 18, 2016, Andreas Klöckner [email protected]
wrote:
Please note that c generator isn't working for funcs with attributes.
Could you provide a test?
Can you provide commit access as I have added couple of Gnu C extensions ?
Just fork the repo and send a pull request.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#14 (comment)
from pycparserext.
All those pass.
from pycparserext.
Related Issues (20)
- generator.visit of pycparser displaying wrong output in Ubuntu 16.04.3 HOT 2
- Symbol 'id_init_declarator_list_opt' used, but not defined as a token or a rule HOT 3
- Support for register type xxx __asm__(yyy) HOT 4
- error while importing from pycparser.plyparser import parameterized HOT 3
- Double pointers badly handled HOT 10
- Add an open source license to this repository HOT 1
- Coord.line is always set to 0 for Asm nodes HOT 1
- struct in a struct with __attribute__((packed)) HOT 1
- pycparser.ply.yacc.YaccError: Unable to build parser HOT 7
- installation error pycparserext HOT 5
- Cannot traverse nodes using NodeVisitor, FuncDeclExt is not iterable HOT 4
- TypeError: _generate_type() got an unexpected keyword argument 'emit_declname' HOT 2
- Parsing of Basic Blocks HOT 1
- test/test_pycparserext.py L244 test_array_attributes lost array dimension HOT 4
- Check the parsed AST in the tests HOT 1
- Support for case ranges HOT 2
- Next release roadmap HOT 2
- stddef.h include issue HOT 2
- NotImplementedError: cannot attach asm or attributes to nodes of type '<class 'pycparser.c_ast.PtrDecl'>'
- Support complex __attribute__ involving __alignof__ HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycparserext.