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

Kpako kpako at yahoo.com
Wed Jul 17 19:25:52 PDT 2002


The following Lexer rule

IDENT_OR_RULE_BEGIN
    : (IDENT "::=") => RULE_BEGIN {$setType(RULE_BEGIN); }
    | IDENT { $setType(IDENT); }
    ;

generates 

	if ( synPredMatched30 )
		{
			mRULE_BEGIN(false);
			if (0==inputState.guessing)
			{
				_ttype = RULE_BEGIN;
			}
		}


among others instead of 


	if ( synPredMatched30 )
		{
			mRULE_BEGIN(false);
			if (0==inputState.guessing)
			{
				_ttype = FooTokenTypes.RULE_BEGIN;
			}
		}


is this a bug or am I doing something 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