[antlr-interest] Question problem constant value?

sunao furukawa sadie at kind.ocn.ne.jp
Sun Aug 15 01:02:17 PDT 2010


Hello,

My grammar file is improved one by one.
Constant 'b' is used by the rule level_symbol.
I want to use variable name b.
But, variable name b collides with constant 'b'.
variable name b is red letter when debugging.
Please teach the way not to collide constant 'b'.

input text when debugging

primitive mux (y, a, b, sel);
 output y;
 input sel, a, b;
 table 
 // a b sel : y
  0 ? 0 : 0; 
  1 ? 0 : 1; 
  ? 0 1 : 0; 
  ? 1 1 : 1; 
 endtable
endprimitive

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: veriloghdl2.g
Type: application/octet-stream
Size: 27304 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100815/ab3aba94/attachment.obj 


More information about the antlr-interest mailing list