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
                    
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="FastParser.Language.Cobol" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FastParser.Language.Cobol" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="FastParser.Language.Cobol" />
                    
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 FastParser.Language.Cobol --version 0.1.2
                    
#r "nuget: FastParser.Language.Cobol, 0.1.2"
                    
#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 FastParser.Language.Cobol@0.1.2
                    
#: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=FastParser.Language.Cobol&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=FastParser.Language.Cobol&version=0.1.2
                    
Install as a Cake Tool

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.

There are no supported framework assets in this 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
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.