grammars-v4
grammars-v4 copied to clipboard
Where to find JavaScriptBaseParser for Swift?
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!
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.
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.