[antlr-interest] C# TARGET ANNOUNCEMENTS

Johannes Luber jaluber at gmx.de
Sat Apr 12 15:45:52 PDT 2008


Micheal J schrieb:
> Johannes,
> 
> The standard java runtime has no equivalent to the old Token class in C#.
> CommonToken and ClassicToken implement IToken but are otherwise unrelated
> (nor should they be). Token is useful for injecting common behaviour when in
> custom variants of the runtime.

Firstly, people can create an own Token base class when truly necessary. 
Secondly, if we don't need it (which is because ClassicToken implements 
ANTLR v2 behaviour and CommonToken implements ANTLR v3 behaviour) then 
it doesn't make sense to include it.

I really can't see why anyone would try to combine both classes or to 
create another variant, which doesn't follow the behaviour of 
ClassicToken or CommonToken. For the latter, I don't know if there is 
even a third possibility of semantics. It must be truly an oddball which 
we as runtime people for standard ANTLR shouldn't care about.

>>> Prebuild has bugs in it's Nant build file generation and 
>> vs2005/vs2008 
>>> project file generation iirc. Related to resource files I think but 
>>> can't remember the specifics at the moment, sorry.
>> I will look into that. Maybe I'll fix the Nant build instead, 
>> although having a functional Prebuild setup would help for 
>> the VS project files.
> 
> Might be worth checking if Prebuild be moulded to generate Nant files that
> can build docs, the distro archives etc in addition to building the
> assemblies...

The distro archives? You mean the daily builds? For that using the 
ant-build is sufficient. One could add to the ant-build the building of 
the runtime targets at least as an option, as this would simplify things 
further.

Johannes


More information about the antlr-interest mailing list