ternlang-compat 0.3.2

Compatibility bridges for the ternary ecosystem — .tasm 9-trit assembler → BET bytecode, Owlet S-expression front-end.
Documentation

ternlang-compat

Compatibility bridges for the Ternlang ecosystem. Lets existing ternary computing projects target the BET VM as a common runtime.

Bridges

.tasm — 9-trit RISC assembly

Translates the Brandon Smith / ternary-computing.com .tasm assembly dialect (9-trit word, RISC-like mnemonics) into BET bytecode.

use ternlang_compat::tasm::assemble;

let bytecode = assemble("LOAD R0, 1\nADD R0, R1\nHALT")?;

Owlet — S-expression front-end

Parses Owlet-style S-expressions into ternlang AST nodes for evaluation on the BET VM.

use ternlang_compat::owlet::eval;

let result = eval("(consensus (affirm) (tend))")?;

License

LGPL-3.0-or-later. See LICENSE.