#1323: t/compilers/imcc/syn/clash.t:  Is test complete?
---------------------+------------------------------------------------------
 Reporter:  jkeenan  |       Owner:  plobsing
     Type:  todo     |      Status:  new     
 Priority:  normal   |   Milestone:          
Component:  testing  |     Version:  1.8.0   
 Severity:  medium   |    Keywords:          
     Lang:           |       Patch:          
 Platform:           |  
---------------------+------------------------------------------------------
Changes (by plobsing):

  * owner:  => plobsing


Comment:

 The error messages is currently:
 {{{
 error:imcc:The opcode 'new_p_ic' (new<2>) was not found. Check the type
 and number of the arguments
 }}}

 Here's why:
  * Barewords that aren't predefined variables are assumed to be labels.
  * The 'ic' op fullname arg code is used both for integer constants and
 labels.
  * Instruction selection occurs right as we parse the op, meaning we
 cannot know that there isn't a label 'INTVAL' somewhere.

 Here's how we might improve the situation:
  * Make label op arguments take a prefix (eg: '&')
  * Make label op arguments represented by a different code in fullnames
 (eg: 'lbl')
  * Require predeclaration of labels
  * Parse all the way through a sub before selecting instructions

 I'm open to suggestions.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1323#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to