Skip to content

purescript-codegen/purescript-codegen.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

purescript-codegen

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.

Purescript

Printing

  • 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)

Parsing

language-cst-parser

TypeScript

Purescript to DTS

tsd-gen (haskell)

DTS to Purescript

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.

related projects to typescript codegen

old repositories

  • 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.

About

"Wiki" for purescript-codegen org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •