Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- print_string :: ASCII -> String
- enc_text :: (String -> String) -> ENCODE_F String
- print_graphdef :: Bool -> Graphdef -> String
- list_read_f :: (t -> u) -> State [t] u
- text_get_f :: GET_F (StateT [String] Identity)
- read_graphdef :: String -> Graphdef
Documentation
print_string :: ASCII -> String Source #
Print string. Strings must not have internal whitespace or semi-colons.
print_graphdef :: Bool -> Graphdef -> String Source #
encode_graphdef_f
of enc_text
with optional semi-colon delimited comments.
dir = "/home/rohan/sw/rsc3-disassembler/scsyndef/" pp nm = read_graphdef_file (dir ++ nm) >>= putStrLn . print_graphdef True pp "simple.scsyndef" pp "with-ctl.scsyndef" pp "mce.scsyndef" pp "mrg.scsyndef"
LIST INPUT
list_read_f :: (t -> u) -> State [t] u Source #
Read the next value from a list.
read_graphdef :: String -> Graphdef Source #
Read text representation of Graphdef, as written by print_graphdef
.
read_graphdef "1396926310 0 1 simple 2 0.0 440.0 0 0 2 SinOsc 2 2 1 0 -1 1 -1 0 2 Out 2 2 0 0 -1 0 0 0"