[antlr-interest] Value types - can't be set to null in C#
Shawn Poulson
spoulson3 at yahoo.com
Mon Jan 7 12:28:33 PST 2008
--- Harald Mueller <harald_m_mueller at gmx.de> wrote:
> datetime returns [DateTime value = DateTime.Now]
Thanks for the quick reply. This had actually eliminated one of the
two errors. However, it still generates one error from the the C# code
I quoted for the "prog" rule.
It seems I still need to initialize the "dt" value in the prog rule:
----- 8< ----- 8< -----
prog: dt=datetime {Debug.WriteLine("datetime=" +
$dt.value.ToString());};
----- 8< ----- 8< -----
Any ideas?
---
Shawn Poulson
spoulson at explodingcoder.com
More information about the antlr-interest
mailing list