[antlr-interest] Re: Updated version of C# codegen 2.7.2a2 now on ANTLR site

Kpako kpako at yahoo.com
Tue Jul 16 20:22:03 PDT 2002


The following rule in my lexer 

EQUAL: 
        "="
        {
        #if DEBUG
           Console.WriteLine("EQUAL:{0} seen", $getText);
        #endif
        }
	;

generates 

if DEBUG
  Console.WriteLine("EQUAL:{0} seen", text.ToString(_begin, 
text.Length-_begin));
endif

while the rule 

EQUAL: 
        "="
        {
        #if DEBUG
           Console.WriteLine("EQUAL:{0} seen", "=");
        #endif
        }
	;

correctly generates 

	#if DEBUG
	Console.WriteLine("EQUAL:{0} seen", "=");
	#endif


Is this a bug or am I doing somthing wrong? 

--- In antlr-interest at y..., "micheal_jor" <open.zone at v...> wrote:
> ChangeLog
> ---------
> 
>  - general bug-fixes particularly to the OctalToUnicode() routine -
 
> uncovered during my recent Unicode adventures ;-)
> 
>  - added support for C# namespaces (hoping to support GenHashLines 
> option in a later release)
> 
>  - incorporated CaseSensitiveLiterals changes posted to the list 
by 
> DINURP as well as the StreamReader/TextReader changes
>   [ Many thanks and keep 'em coming. ]
> 
>  - ported Scott Ellis's _saveindex create-on-demand optimizations 
to 
> stop thse annoying warnings.
>   [ Many thanks. ]
> 
>  - revamped the C# runtime notes in the HTML file in the 'doc' 
> directory
> 
> 
> Now that you know, go and try the C# codegen and post any issues, 
> feature requests, bugs and patches to the list please. 
> 
> Enjoy!
> 
> Micheal


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list