Input arguments for lexer rules

  1 post   Feedicon  
Replies: 0 - Last Post: April 06, 2010 08:39
by: hmlnarik
showing 1 - 1 of 1
 
Posted: April 06, 2010 08:39 by hmlnarik
Hi,

first of all, thanks for developing this plugin.

I think there is a bug: a syntactically correct lexer rule that uses input arguments is erroneously treated as syntactically wrong.
fragment
ESC_SEQ[StringBuilder sb]
    :   '\\' 
    		('b'	{sb.append('\b');}
    		|'t'	{sb.append('\t');}
    		|'n'	{sb.append('\n');}
    		|'r'	{sb.append('\r');}
    		|'\"'	{sb.append('\"');}
    		|'\''	{sb.append('\'');}
    		|'\\'	{sb.append('\\');}
    	    )
    ;

I'm using Netbeans 6.8 with Antlr plugin 0.2.6 from Plugin Portal.

Would it be possible for you to fix this bug?

Cheers
Replies: 0 - Last Post: April 06, 2010 08:39
by: hmlnarik
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close