How do you generate F# code using its AST?
abstract-syntax-tree, f#
Solution
I totally agree with Tomas' answer. You need the latter half of Fantomas pipeline. Here is some relevant information.
FSharp.Compiler.Service's AST module consists of relevant ASTs and other utility functions for creating AST nodes, which might be helpful for you.
In Fantomas project, there is `formatAST` function that takes an AST as an input and output a source code string.
Problem
I would like to generate F# code for a .fs file using the abstract syntax tree. I am able to generate a .cs file using the Roslyn API. Here is an example riak.cs file that the unit tests generate based on the riak.proto. I would like to do the same thing in F#. I do not want to create a type provider yet. Does anyone have any examples using FSharp.Compiler.Service, possible with Fantomas?