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
<PackageReference Include="SyncSql.Grammar.PlSql" Version="2026.10.4.8" />
<PackageVersion Include="SyncSql.Grammar.PlSql" Version="2026.10.4.8" />
<PackageReference Include="SyncSql.Grammar.PlSql" />
paket add SyncSql.Grammar.PlSql --version 2026.10.4.8
#r "nuget: SyncSql.Grammar.PlSql, 2026.10.4.8"
#:package SyncSql.Grammar.PlSql@2026.10.4.8
#addin nuget:?package=SyncSql.Grammar.PlSql&version=2026.10.4.8
#tool nuget:?package=SyncSql.Grammar.PlSql&version=2026.10.4.8
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.g4andGrammar/PlSqlParser.g4: vendored grammar source.Grammar/PlSqlLexerBase.csandGrammar/PlSqlParserBase.cs: vendored C# target support.Generated/PlSqlLexer.cs: generated lexer.Generated/PlSqlParser.cs: generated parser.Generated/PlSqlParserVisitor.csandGenerated/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:
Replace the four vendored files in
Grammar/with a reviewed upstream revision.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.g4Commit only the four generated
.csfiles..interpand.tokensare generator diagnostics and are ignored.Run
dotnet test cli/SyncSql.slnx --configuration Releaseand 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 | Versions 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. |
-
.NETStandard 2.0
- Antlr4.Runtime.Standard (>= 4.13.1)
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 |