[antlr-interest] ANTLRWorks 1.2b5 - Cannot Connect to C# Process
Terence Parr
parrt at cs.usfca.edu
Thu Aug 14 13:14:52 PDT 2008
Hi. never heard of InitializeCyclicDFAs...oh, this is a C#-only issue
that it must manually invoke code to init all the cyclic DFA (tables
of integers). Java can do this automatically. A grep shows:
antlr/codegen/templates/CSharp/CSharp.stg:
InitializeCyclicDFAs();
antlr/codegen/templates/CSharp/CSharp.stg:
InitializeCyclicDFAs(); <! Necessary in C#??? Not removed yet. !>
antlr/codegen/templates/CSharp/CSharp.stg: private void
InitializeCyclicDFAs()
antlr/codegen/templates/CSharp/CSharp.stg:
InitializeCyclicDFAs();
antlr/codegen/templates/CSharp/CSharp.stg: private void
InitializeCyclicDFAs()
antlr/codegen/templates/CSharp2/CSharp2.stg:
InitializeCyclicDFAs();
antlr/codegen/templates/CSharp2/CSharp2.stg:
InitializeCyclicDFAs(); <! Necessary in C#??? Not removed yet. !>
antlr/codegen/templates/CSharp2/CSharp2.stg: private void
InitializeCyclicDFAs()
antlr/codegen/templates/CSharp2/CSharp2.stg:
InitializeCyclicDFAs();
antlr/codegen/templates/CSharp2/CSharp2.stg: private void
InitializeCyclicDFAs()
Ter
On Aug 14, 2008, at 8:55 AM, Johannes Luber wrote:
> Jones, Larry schrieb:
>> Johannes,
>> Thanks for the information.
>> I confirmed that the default of ANTLWorks 1.2b5 is still 49100;
>> however,
>> when I manually changed it to 49153, the behavior of ANTLWorks
>> remained
>> the same.
>
> I've been informed shortly ago, that the debug constructor is
> missing the call of InitalizeCyclicDFAs(). Unfortunately not yet,
> which constructor, but I guess it is the one for the debug parser.
> Another problem is that I can't find InitalizeCyclicDFAs() in the
> Java target, so I'm not sure where the bug actually originated. I
> have to ask Ter about that one first, but you can try to add the
> call to InitalizeCyclicDFAs() yourself.
>
> J
More information about the antlr-interest
mailing list