mulang icon indicating copy to clipboard operation
mulang copied to clipboard

Implement native ruby parser

Open flbulgarelli opened this issue 6 years ago • 4 comments

Although Ruby support #59 has been implemented externally, it would be nice to actually have a Haskell parser, which may be faster, simpler to use, and may be bundled within the JS distribution, making it more portable.

The bad news is that there is no Language.Ruby package over there. The good news is that https://github.com/whitequark/parser seems to be implemented using yacc - https://github.com/whitequark/parser/blob/master/lib/parser/ruby23.y - and that happy - which we are indirectly using with some of our own parsers - is inspired on it, so perhaps porting the BNF may not be that difficult nor a complete rewrite.

flbulgarelli avatar Jan 04 '19 15:01 flbulgarelli

Also, we could get rid off that ugly warning @julian-berbel https://github.com/whitequark/parser/issues/286 :stuck_out_tongue:

flbulgarelli avatar Jan 04 '19 15:01 flbulgarelli

This issue is in-progress here: https://github.com/flbulgarelli/language-ruby

flbulgarelli avatar Mar 25 '19 19:03 flbulgarelli

Can we close this one and move the specific issues to that repo? @flbulgarelli @julian-berbel

luchotc avatar Dec 16 '19 19:12 luchotc

Nope, since even after implementing that parser, we will have to integrate it into mulang.

flbulgarelli avatar Dec 19 '19 23:12 flbulgarelli