FastParser.Language.Cobol
0.1.2
dotnet add package FastParser.Language.Cobol --version 0.1.2
NuGet\Install-Package FastParser.Language.Cobol -Version 0.1.2
<PackageReference Include="FastParser.Language.Cobol" Version="0.1.2" />
<PackageVersion Include="FastParser.Language.Cobol" Version="0.1.2" />
<PackageReference Include="FastParser.Language.Cobol" />
paket add FastParser.Language.Cobol --version 0.1.2
#r "nuget: FastParser.Language.Cobol, 0.1.2"
#:package FastParser.Language.Cobol@0.1.2
#addin nuget:?package=FastParser.Language.Cobol&version=0.1.2
#tool nuget:?package=FastParser.Language.Cobol&version=0.1.2
FastParse COBOL Language Extension
Status: Stable
This extension registers the canonical FastParse parse language:
cobol
It uses the vendored grammar at grammars/tree-sitter-cobol and exports:
fastparse_language_extension_descriptor
tree_sitter_COBOL
Build locally from the vendored grammar:
cmake -S . -B build-cobol-extension -DCMAKE_BUILD_TYPE=Release \
-DFASTPARSE_COBOL_GRAMMAR_DIR=grammars/tree-sitter-cobol
cmake --build build-cobol-extension --config Release --target fastparse_language_cobol
Package a local native archive:
python3 scripts/package_language_extension.py \
--language cobol \
--version 0.1.1 \
--platform macos \
--arch arm64
Load explicitly:
from fastparse import FastParse
parser = FastParse()
parser.load_language_extension("bin/libfastparse_language_cobol.dylib")
result = parser.parse_text(cobol_source, language="cobol")
The grammar accepts full COBOL programs, copybook fragments, and COBOL sources with embedded EXEC SQL ... END-EXEC blocks. Fixed-column and legacy layout normalization is handled before parsing by FastParse or the lab validation tools.
For NuGet publication, publish the core FastParser package and FastParser.Language.Cobol as a matched pair. Raw enterprise COBOL can include CP037/EBCDIC files, tab-indented copybooks, fixed-column sources shifted toward column 1, missing statement terminators before area-A paragraph headers, and continuation marker variants; those cases require a core version whose auto_safe / cobol_fixed_legacy normalization prepares a conservative in-memory parser view.
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- FastParser (>= 0.1.2)
-
net9.0
- FastParser (>= 0.1.2)
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 |
|---|---|---|
| 0.1.2 | 109 | 8/24/2026 |
| 0.1.1 | 107 | 8/21/2026 |
| 0.1.1-preview.1 | 69 | 8/21/2026 |
| 0.1.0-preview.37 | 83 | 8/13/2026 |
| 0.1.0-preview.35 | 71 | 8/13/2026 |
FastParse language extension for cobol.