On Wed Oct 17 12:09:54 2007, bernhard wrote:
> Currently following PIR is failing because of the '#' in the '.param' list.
> 
> .sub main :main
> 
>   ( $S1 ) = my_sub( 'hello', 'world' )
>   say $S1
> .end
> 
> .sub my_sub
>     .param string  str1
>     #
>     .param string  str3
> 
>     .local string hello
>     hello = concat str1, str3
> 
>     .return( hello )
> .end
> 
> 
> This surprised me, as I expected that '#' lines would be ignored.
> So I propose to tweak the PIR grammar such that comment lines are allowed
> 
> Regards,
>   Bernhard
> 

Supporting blank lines between .param would also be a reasonable extension. 
I've updated 
the tests in t/compilers/imcc/syn/regressions.t to test for those conditions 
too. The parser 
already allows comments and whitespace before the first .param, just not in 
between them.




Reply via email to