Page 2 of 2

Re: 723 - Comment Removal_Clarification

Posted: Sat Jun 23, 2012 1:18 pm
by stubbscroll
My program outputs:

Code: Select all

begin;
myfunc  }
end;
Hope this helps.

Re: 723 - Comment Removal

Posted: Wed Sep 02, 2015 11:23 am
by TryCatchMe
Can someone PLEASE post more critical input? I get the same output as all of the above input and cannot figure out why WA. I get the same answers for all of the uDebug sample io as well. Thanks.

Also, can someone with AC confrm this...

input

Code: Select all

begin
var s := (*

 some
  
 long comment*) '
 
 a string literal
 
 on multiple
 
 lines after a comment';
 
end.

output:

Code: Select all

begin
var s :=  '
 
 a string literal
 
 on multiple
 
 lines after a comment';
end.
Note that there are 2 blanks between = and ' in the first line because comments are removed after multiple blanks are removed.