capabilities · overview

Compiler intelligence in the fast path. Vendor tooling at the boundary.

The core is easier to scan as six surfaces: analyze, diagnose, transpile, serve language intelligence, verify and route.

CST → HIR → TIR
compiler

Lossless analysis

Preserve source structure while resolving types, scopes and target semantics.

2ot check --fast
diagnostics

Fast feedback

Run the cheap compiler loop without starting vendor software.

2ot transpile
transpile

Target-aware emission

Lower divergent IEC dialects into target-specific representations.

LSP
protocol

Language intelligence

Expose compiler-backed diagnostics, symbols and semantic operations.

multi-vendor
testing

Verification

Compare compiler behavior with vendor and runtime evidence.

one gateway
routing

Workspace routing

Route common operations to Siemens TIA Portal, Beckhoff TwinCAT or CODESYS from workspace metadata.

LOSSLESS SOURCE

Formatting is part of the round trip

A lossless Concrete Syntax Tree preserves comments and source structure so analysis and target-aware rewriting do not treat formatting as disposable noise.

HoistInlineVarDeclarationsPass
Hoist inline VAR blocks for stricter target formatting.
StripBeginMarkersPass
Remove legacy BEGIN markers while preserving source structure.
LowerUnsupportedRuntimeCallsPass
Map unsupported calls to deterministic target strategies.
DomainCallRewriteFolder
Rewrite domain functions to target-native spelling.
NormalizeElseIfFolder
Normalize conditional syntax across IEC dialects.

One compiler model, multiple target boundaries

Target quirks stay in localized lowering/normalization passes while vendor automation remains outside the compiler core.

See architecture →