A parser for Turing Machine Language (TML) programs. Version 2.0.6 ships TypeScript types and provides both synchronous and streaming parsing. It is actively maintained with regular releases. Key differentiators include a callback-based parsing API and support for reading TML from files or strings. The package is designed for educational and experimental use in simulating Turing machines.
npm install parser-tmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a TML program from a string using the streaming parser with callbacks, and alternatively uses the simple parse function.
Update code to expect an object with parsed structure instead of a raw string.
Attach event listeners before calling .parse() on the Parser instance.
Change event name from 'instruction' to 'step'.
Validate the TML program against the TML specification before parsing.
Use named import: import { Parser } from 'parser-tml'Run npm install parser-tml
No dependency data recorded yet.