HTC API Documentation
Safe HaskellSafe-Inferred

Codegen

Description

Codegen.hs Translator from TALM dataflow graph DOT format into TALM assembly.

Synopsis

Documentation

parseNodes :: Text -> [(Text, Text)] Source #

Parse node definitions in DOT: lines containing "[label=".

parseEdges :: Text -> [(Text, Text)] Source #

Parse edges in DOT: lines containing "->".

generateInstructions :: [(Text, Text)] -> [(Text, Text)] -> [Text] Source #

Generate TALM instructions for all nodes (order preserved)