The original, highly-optimized C# Target for ANTLR 4
This release is available through NuGet, with complete installation instructions described in the Readme.md.
Thank you goes to all of the following users, who contributed feedback, bug reports, code submissions, testing, and reviews which helped in this release. In alphabetical order by username. This list does not include people who contacted us through other channels, but your feedback is no less valuable so we thank you as well.
This release is available through NuGet, with complete installation instructions described in the Readme.md.
Some non-breaking changes included in this release are not yet described in these release notes.
AmbiguityInfo
constructor.IEdgeMap<T>.ToMap()
now returns a ReadOnlyDictionary<int, T>
for all runtimes.DFAState.EdgeMap
and DFAState.ContextEdgeMap
are now ReadOnlyDictionary<int, DFAState>
for all runtimes.ParserRuleContext.GetTokens
now returns ITerminalNode[]
in all runtimes (previously .NET 4.5+ did not).
IReadOnlyList<ITerminalNode> x = context.GetTokens(Type);
will still work, because ITerminalNode[]
implements IReadOnlyList<ITerminalNode>
in .NET 4.5.ParserRuleContext.GetRuleContexts<T>()
now returns T[]
in all runtimes (previously .NET 4.5+ did not).ContextType[]
in all runtimes (previously .NET 4.5+ returned IReadOnlyList<ContextType>
)Func<...>
delegates for runtimes prior to .NET 3.5 were moved from namespace Antlr4.Runtime.Sharpen
to System
.HashSet<T>
class for runtimes prior to .NET 3.5 were moved from Antlr4.Runtime.Sharpen
to System.Collections.Generic
.This release is available through NuGet, with complete installation instructions described in the Readme.md.
Some non-breaking changes included in this release are not yet described in these release notes.
IRecognizer.Vocabulary
propertyParserATNSimulator.CreateDFAState
DFAState
constructorParserATNSimulator.ResolveToMinAlt
adaptivePredict
prediction algorithmabstract
grammar option does not produce abstract classes. This affects both options { abstract = true; }
and the -Dabstract=true
command line option.This release is available through NuGet, with complete installation instructions described in the Readme.md.
Sharpen
namespace to Antlr4.Runtime.Sharpen
, and several of the the classes are now marked internal
.string.Format
(#40)This release is available through NuGet, with complete installation instructions described in the Readme.md.
If you are updating from a version of the C# target prior to 4.2.0-alpha001, make sure to read the release notes for 4.2.0-alpha001 as well, as several changes were made that affect the usage of this target.
This release is available through NuGet, with complete installation instructions described in the Readme.md.
If you are updating from a version of the C# target prior to 4.2.0-alpha001, make sure to read the release notes for 4.2.0-alpha001 as well, as several changes were made that affect the usage of this target.
This release is available through NuGet, as described in the Readme.md.
HIDDEN
and EOF
constants in the grammar. It is no longer necessary to declare these in an @members{}
block in order to use them.parser.Interpreter.enable_global_context_dfa = true
.