It is possible with the "coord" Object. Have a look at the coord class in the plyparser.py
https://bitbucket.org/eliben/pycparser/src/b169b693a194/pycparser/plyparser.py?at=default
문제
I'm looking into parsing a C-file with pycparser and I'm trying to get the source line number from the AST generated by pycparser. Is this possible?
올바른 솔루션이 없습니다
다른 팁
It is possible with the "coord" Object. Have a look at the coord class in the plyparser.py
https://bitbucket.org/eliben/pycparser/src/b169b693a194/pycparser/plyparser.py?at=default