Ubiquity.NET.ANTLR.Utils 20.1.8-alpha

This is a prerelease version of Ubiquity.NET.ANTLR.Utils.
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 4.9.0 or higher.

dotnet add package Ubiquity.NET.ANTLR.Utils --version 20.1.8-alpha
                    
NuGet\Install-Package Ubiquity.NET.ANTLR.Utils -Version 20.1.8-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ubiquity.NET.ANTLR.Utils" Version="20.1.8-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ubiquity.NET.ANTLR.Utils" Version="20.1.8-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Ubiquity.NET.ANTLR.Utils" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ubiquity.NET.ANTLR.Utils --version 20.1.8-alpha
                    
#r "nuget: Ubiquity.NET.ANTLR.Utils, 20.1.8-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ubiquity.NET.ANTLR.Utils@20.1.8-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ubiquity.NET.ANTLR.Utils&version=20.1.8-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ubiquity.NET.ANTLR.Utils&version=20.1.8-alpha&prerelease
                    
Install as a Cake Tool

About

This library provides general extensions to ANTLR including adapter bindings for the Ubiquity.NET.Runtime library.

Key usage

  • Get a SourceLocation from various ANTLR types (rule,tokens,terminals)
    • This provides an adaptation to the abstract SourceLocation
  • Debug trace listener
    • Provides debug TRACE support for any parser by listening for every rule and using Debug.Trace() to generate a string representation of that rule. This is VERY useful when developing or debugging a grammar.
  • Adapter for parse error listeners to a unified and abstract Ubiquity.NET.Runtime.IParseErrorListener.
    • This allows building consumers that deal with errors and remain indepent of the parsing technology.
  • Extension functions that provides commonly used support for ANTLR
    • Get a character interval from a ParserRuleContext with support for the standard EOF rule.
    • Gets the source stream from an IRecognizer
    • Gets the source text from a rule context and recognizer that produced it.
    • Gets source text from a rule context and stream that it was parsed from.
    • Gets a unique ID for a parse tree
      • Useful for building graphs of the result of parsing as many graphing representations require a unique node id for every node in the graph.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
20.1.8-alpha.0.2 491 7/22/2025
20.1.8-alpha.0.1 23 7/18/2025
20.1.8-alpha 114 7/16/2025