CL Parser
A ready-to-go solution!
Why consider buying a commercial parser? You may need a parser that has been thoroughly tested and which is documented and has someone to call in case you encounter any problems. License our off-the-shelf CL parser and make life easier for yourself!
2,160 IBM i (AS/400, iSeries) CL commands mapped to a typed AST — ILE CL and OPM CL.
Working with CL
You may want to perform several operations on your CL code, which our parser might help you with. Let’s discover them.
Detect issues, enforce coding standards and identify anti-patterns in your CL scripts. Ideal for building custom linters or integrating quality checks into CI pipelines, covering the jobs that orchestrate your IBM i applications.
Transformation
Modify CL programs programmatically — update commands, rename objects and libraries, or apply formatting rules — while preserving structure and comments.
Analyze and evolve legacy OPM CL programs towards ILE CL, restructure job flows, and document the operational knowledge encoded in your scripts.
Tools
Use the parser as the foundation for editors with syntax highlighting — a built-in token API classifies all tokens — documentation generators and dependency analyzers for IBM i codebases.
Metrics
Generate detailed information about your CL codebase: which programs are called, which files and libraries are referenced, how complex job flows are. Useful for dashboards and modernization assessments.
Four reason to Buy
Flexible License
We provide a flexible commercial license, which gives you access to the full documentation. You can choose a Standard, Distribution, or Service License, and our support is included with it.
Why Choose Strumenta's CL Parser?
IBM’s Control Language (CL) is essential for managing AS/400 and IBM i systems. But CL scripts often contain business-critical logic that’s hard to analyze or evolve. Our CL parser helps you interpret, document, and refactor these scripts, unlocking modernization without losing control.
01Proven Reliability
02Comprehensive Documentation and Support
03Effortless Integration
Technical specifications
and license details
The CL Parser provided by Strumenta is a parser for IBM i Control Language (CL) — the language of the AS/400 and IBM i platforms. It processes CL code (.cl, .clp, .clle members) and returns the information it contains, organized in an Abstract Syntax Tree (AST). We explicitly support the ILE CL flavor, and it works with OPM CL too.
2,160 CL commands are individually recognized and mapped to typed AST classes, with required parameters exposed as typed fields; unknown, user-defined and third-party commands never break parsing — they are captured as generic command nodes. Both positional and keyword parameter forms are supported, along with qualified LIB/OBJ names, selective prompting, continuation lines and all 24 CL data types.
The parser can be used as a library integrated into applications running on the Java Virtual Machine. Beyond parsing, a semantics module resolves variable references to their declarations and supports codebase-level, cross-file analysis. The full CL metamodel is exported as a LionWeb Language, and every AST can be serialized to LionWeb JSON with stable node IDs — so results can be consumed from Java, Python, C# or TypeScript tooling.
-
When it is used as a library it can be integrated into applications running on the Java Virtual Machine.
-
When the parser is used as a command-line tool, it can provide the AST as an output serialized in either JSON or XML format.
Error handling is robust, with support for custom listeners and fallback recovery in incomplete or malformed code: parsing always returns a usable partial AST plus positioned issues. It can be extended or customized through AST visitors and post-processing hooks. No connection to the IBM i is required: you analyse exported source members offline, on laptops or CI servers.
- Standard
- Distribution
- Service License
Get the CL Language Engine brochure
A two-page PDF with the complete technical overview of our CL Language Engine — the evolution of the CL Parser: 2,160 IBM i CL commands mapped to a typed AST, semantic enrichment, LionWeb interoperability and licensing. Leave your email and download it right away.
Try it yourself: Strumenta Playground
Before committing to any tool, it’s only fair to see it in action, and that’s exactly what the Strumenta Playground is for. The Playground is an interactive online space where you can test the capabilities of our parsers. Whether you’re exploring how the parser handles specific statements, inspecting the structure of parsed queries, or simply curious about what you can build on top of it, the Playground gives you a hands-on preview.
Stop building from scratch. Start with confidence.
Our production-ready parsers are here when you need them fast, reliable, and battle-tested.