-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
When I was tried to parse source with several asm instructions (described at http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html)
I faced with fails to parse similar pieces:
1 . void read_tsc(void) {
long val;
asm("rdtsc" : "=A" (val));
}
whereas asm(''nothing") mistakenly recognized as function call.
2 . void read_tsc(void) {
long val;
asm volatile("rdtsc" : "=A" (val));
}
3 . void read_tsc(void) {
long fpenv;
asm(""mtfsf 255,%0"
: :
"f" (fpenv));
}
I suppose that highlighted parts are different states for context-free grammar used by pycparserext in whole.
Metadata
Metadata
Assignees
Labels
No labels