[antlr-interest] While using preliminary C# code generator.

dinurp dinurp at yahoo.com
Tue Apr 23 22:37:55 PDT 2002


I faced 2 other problems while using th epreliminary C# code 
generator:
1) new MyLexer(System.In) //did not compile
2) Option caseSensitiveLiterals=false didn't work

Following is the list of changes I made to the code generator to get 
going. They seem to set things right. Any suggestions?

Thanks,
Dinu

315c315
<println("using TextReader= System.IO.TextReader;"); //DINU
---
>println("using StreamReader= System.IO.StreamReader;");
393c393
<println("public " + grammar.getClassName() + "(TextReader r) : this
(new CharBuffer(r))"); //DINU
---
>println("public " + grammar.getClassName() + "(StreamReader r) : this
(new CharBuffer(r))");
433,439c433
<if ( g.caseSensitiveLiterals ) //DINU
<	println("literals = new Hashtable();");
<else //DINU
< 	println("literals = new Hashtable(" + //DINU
< 	"System.Collections.CaseInsensitiveHashCodeProvider.Default," 
+ //DINU
<       "System.Collections.CaseInsensitiveComparer.Default);"); //DIN
U
< 
---
> 	println("literals = new Hashtable();");


 

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



More information about the antlr-interest mailing list