Safe Haskell | Safe-Inferred |
---|
Codegen
Description
Codegen.hs Translator from TALM dataflow graph DOT format into TALM assembly.
Synopsis
- parseNodes :: Text -> [(Text, Text)]
- parseEdges :: Text -> [(Text, Text)]
- generateInstructions :: [(Text, Text)] -> [(Text, Text)] -> [Text]
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)