develooper Front page | perl.perl6.internals | Postings from July 2002

Re: [netlabs #757] Problem mixing labels, comments and quote-marks

Thread Previous | Thread Next
From:
Tom Hughes
Date:
July 13, 2002 10:32
Subject:
Re: [netlabs #757] Problem mixing labels, comments and quote-marks
Message ID:
178480554b.tom@compton.compton.nu
In message <20020703012231$208f@gosford.compton.nu>
          Simon Glover (via RT) <bugs-parrot@netlabs.develooper.com> wrote:

>  This code:
> 
>   A:            # prints "a"
>       print "a"
>       end
> 
>   doesn't assemble; the assembler dies with the error message:
> 
>     Use of uninitialized value in hash element at assemble.pl line 844.
>     Couldn't find operator '' on line 1.
> 
>   If you remove the ""s from the comment, it works fine. Likewise, if
>   you put the label, op and comment on the same line, ie:
> 
>    A: print "a"   # prints "a"
>      end
> 
>   then it assembles and runs OK.

Here's a patch that will fix this. I havn't committed it because I'm
not sure why the assember wasn't dropping comments that included quotes
so I'm giving people who know more about the assembler than me a chance
to comment first...

Tom

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About