SyncSql.Grammar.PlSql 2026.10.4.8

dotnet add package SyncSql.Grammar.PlSql --version 2026.10.4.8
                    
NuGet\Install-Package SyncSql.Grammar.PlSql -Version 2026.10.4.8
                    
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="SyncSql.Grammar.PlSql" Version="2026.10.4.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SyncSql.Grammar.PlSql" Version="2026.10.4.8" />
                    
Directory.Packages.props
<PackageReference Include="SyncSql.Grammar.PlSql" />
                    
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 SyncSql.Grammar.PlSql --version 2026.10.4.8
                    
#r "nuget: SyncSql.Grammar.PlSql, 2026.10.4.8"
                    
#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 SyncSql.Grammar.PlSql@2026.10.4.8
                    
#: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=SyncSql.Grammar.PlSql&version=2026.10.4.8
                    
Install as a Cake Addin
#tool nuget:?package=SyncSql.Grammar.PlSql&version=2026.10.4.8
                    
Install as a Cake Tool

SyncSql.Grammar.PlSql

The complete Oracle SQL and PL/SQL parser used by SyncSql.Lineage.Oracle.

NuGet package

Install the standalone .NET Standard 2.0 parser with:

dotnet add package SyncSql.Grammar.PlSql

The package includes the ANTLR runtime dependency and the upstream license and notice. Merges into main release it independently of the CLI, automatically creating grammar-v* tags and GitHub releases; see NuGet publishing for setup and release instructions.

Java-free build design

The human-readable grammar remains the Apache-2.0 sql/plsql grammar from antlr/grammars-v4. ANTLR 4.13.1 generated the C# lexer, parser, and visitor once; those generated .cs files are committed under Generated/.

Normal development is therefore an ordinary .NET build:

Grammar/*.g4 ── documents the grammar and supports future upgrades
Generated/*.cs ── compiled directly by the .NET SDK
Antlr4.Runtime.Standard ── the only ANTLR package required

dotnet build cli/SyncSql.slnx, tests, CI, and dotnet pack do not run a generator and do not need Java, an ANTLR tool JAR, a private SyncSql.Grammar.PlSql package, or a Nexus restore source. The thin cli/src/SyncSql.Grammar.PlSql compile project links these sources and is referenced directly by SyncSql.Lineage.Oracle; the resulting assembly is included in the SyncSql.Cli tool package.

This deliberately favors a larger source checkout over a hidden build-time toolchain. It preserves the mature Oracle/PLSQL coverage already exercised by the lineage visitor, while pure-C# SQL parser libraries currently omit substantial Oracle procedural syntax and Tree-sitter grammars prioritize error-tolerant editor parsing rather than complete validation/analysis coverage.

Layout

  • Grammar/PlSqlLexer.g4 and Grammar/PlSqlParser.g4: vendored grammar source.
  • Grammar/PlSqlLexerBase.cs and Grammar/PlSqlParserBase.cs: vendored C# target support.
  • Generated/PlSqlLexer.cs: generated lexer.
  • Generated/PlSqlParser.cs: generated parser.
  • Generated/PlSqlParserVisitor.cs and Generated/PlSqlParserBaseVisitor.cs: generated visitor API.
  • ../cli/src/SyncSql.Grammar.PlSql/: Java-free compile project that links the files above.

Generated types intentionally remain in the global namespace. The upstream base classes reference them without qualification, and the existing Oracle lineage analyzer consumes the same API.

Updating the upstream grammar

Java is not a repository build dependency. A maintainer only needs the ANTLR generator when choosing to import a newer upstream grammar revision. In that exceptional maintenance workflow:

  1. Replace the four vendored files in Grammar/ with a reviewed upstream revision.

  2. Generate the C# artifacts with ANTLR 4.13.1 (visitor enabled, listener disabled):

    java -jar antlr4-4.13.1-complete.jar \
      -Dlanguage=CSharp -visitor -no-listener -Xexact-output-dir \
      -o Generated Grammar/PlSqlLexer.g4 Grammar/PlSqlParser.g4
    
  3. Commit only the four generated .cs files. .interp and .tokens are generator diagnostics and are ignored.

  4. Run dotnet test cli/SyncSql.slnx --configuration Release and review the generated diff together with the grammar change.

Keeping generation explicit prevents an unreviewed grammar update from silently changing hundreds of thousands of generated lines during an unrelated build.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
2026.10.4.8 122 10/4/2026
2026.9.27.3 111 9/27/2026