[antlr-interest] Value types - can't be set to null in C#

Terence Parr parrt at cs.usfca.edu
Mon Jan 7 16:50:54 PST 2008


On Jan 7, 2008, at 3:38 PM, Johannes Luber wrote:

> The default is, as you see, null. Adding new types to this structure  
> is
> an open-ended task. So we'd need a new way to tell ANTLR, that there  
> is
> a special case. Maybe "prog: dt(DateTime.MinValue)=datetime"? Ter?

I'd rather not add syntax for this.  If it's not a built-in type, all  
defaults can be null for objects, right?

Ter


More information about the antlr-interest mailing list