[Prev][Next][Index]
Problems unparsing a 'continue' stmt in C
- Date: Tue, 6 Sep 1994 14:35:54 -0600
- From: Diego Novillo <diego@cs.ualberta.ca>
- Subject: Problems unparsing a 'continue' stmt in C
- To: Sage bug reports <sage-bugs@cica.indiana.edu>
Hello,
I am having problems with the SgFile::unparse() function. It
doesn't seem to handle continue statements. For example, the following
function
-----------------------------------------------------------------------
test()
{
int i, j;
for( i = 0; i < 10; i++ )
{
if( j == 5 )
continue;
j++;
}
}
-----------------------------------------------------------------------
when unparsed, produces this output
-----------------------------------------------------------------------
test(){
int i, j;
for (i = 0 ; i < 10 ; (i)++)
{
if (j == 5)
{
*** UNPARSING ERROR OCCURRED HERE ***
}
(j)++;
}
}
-----------------------------------------------------------------------
Thank you. Diego.
--
Diego A. Novillo | "We each pay a fabulous price for our
diego@cs.ualberta.ca | visions of paradise. But a spirit with
Computing Science - U of Alberta | a vision is a dream with a mission"
Edmonton, Alberta - Canada | Rush - Mission