Skip to content

πŸ’« Quasiquotation for Swift in Haskell πŸš§πŸ’”πŸ˜’

License

Notifications You must be signed in to change notification settings

steshaw/language-swift-quote

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quasiquotation for Swift in Haskell

This library will eventually provide quasiquotation support for Swift in Template Haskell.

Warning

Unfortunately the Swift 2.1 grammar is quite left recursive -- not just on the small scale but on a large scale. This was not something I had noticed before digging right into this project. It looks as though the changes for Swift 3 might make some things easier in this regard (though I haven't checked the grammar closely). Much of this parser may be reusable for Swift 3. I would recommend using a grammar checking tool prior to encoding the Swift 3 grammar in parser combinators.

Resources

TODO

  • Upgrade to 5.1 🀣.
  • Fix "large scale" left-recursion.
  • remaining pattern productions.
  • Replace interim identifier parser with one that meets the spec.
  • getter-setter-keyword-block (currently disguised as simply getter-setter-block).
  • expressions need to use chainr and chainl.
  • missing/incomplete rendering functions.
  • additional test cases:
    • closures and closure signatures
    • availability conditions
    • protocol members
    • nested expressions
    • enums

About

πŸ’« Quasiquotation for Swift in Haskell πŸš§πŸ’”πŸ˜’

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 93.8%
  • Swift 6.2%