All relevant code to reading and generating purescript. Also contains stuff related to typescript. This readme also links to repositories that do not fall under the organization but are still relevant to codegen.
- ps-cst concrete syntax tree of purescript with printing functions
- language-cst-parser can also print. But tidy-codegen is recommended as it is more convenient to use (uses language-cst-parser under the hood)
tsd-gen (haskell)
read-dts contains the following parts:
- ts-compiler extensive bindings to the typescript compiler
- ts-repr is an intermediate representation (IR) that simplifies the types found in the typescript compiler. Currently only typescript types to ts-repr is possible. ts-repr back into typescript types is planned for the future.
- ts-codegen convert ts-repr IR into purescript using various strategies. Purescript back into ts-repr might be added in the far future.
- Typescript compiler API - using the type checker
- Generate json-schema from your Typescript sources: typescript-json-schema. This is useful to see how the typescript compiler works and which information can be extracted from it.
- auth0 uses typedoc for docs generation.
- TypeScript d.ts file generate from JSON Schema file: dtsgenerator and ts-json-schema-generator.
- cst-simple printer for ps-cst
- js-ast proof of concept
- ps-past extracted from purescript-in-purescript
- purescript-in-purescript abandoned rewrite of purescript compiler in purescript making it self-hosting
- purty - purescript formatter written in haskell. Abandoned since it didn't keep up with the later purescript features. Served as good inspiration for pretty printing purescript code. The official purescript compiler in haskell has only the parser part.