Bug in BASS Parser
Teng Lin
tim at maul.chem.nd.edu
Thu Aug 5 10:49:43 EST 2004
I glance at BASSlex.l this morning and figure out the bug which causes
second round parsing problem.
line 45 at BASSlex.l
int buffer_stack_ptr = 0
since buffer_stack_ptr is a global variable, it is only initialized once
line 413-418 at BASSlex.l
<<EOF>> {
buffer_stack_ptr--;
if( buffer_stack_ptr < 0 ){
yyterminate();
}
...
}
buffer_stack_ptr will be -1 at the end of parsing
Teng
More information about the Openmd-developers
mailing list