grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

Where to find JavaScriptBaseParser for Swift?

Open mistralaix opened this issue 2 years ago • 2 comments

Hello,

I would like to implement the JavaScript Parser in Swift however the JavaScriptBaseParser and Lexer are missing. They seem to be available in all languages besides Swift.

Thanks in advance!

mistralaix avatar Feb 02 '23 23:02 mistralaix

It's not just Swift. The targets PHP and Dart are also not implemented. Feel free to take an existing JavaScriptBaseParser and write/translate it in Swift and then make a pull request.

bkiers avatar Feb 03 '23 10:02 bkiers

I haven't implemented Swift testing for grammars-v4 for trgen, primarily because I don't have a MacOS dev. env. set up. That's on the "to do" at some point. Many of the problems in porting have been because we didn't understand how to write target agnostic grammars.

kaby76 avatar Feb 03 '23 14:02 kaby76