Skip to content

How to translate JavaScript or TypeScript to Dart? #124

Answered by gmpassos
jodinathan asked this question in Q&A
Discussion options

You must be logged in to vote

FYI:

Take a look in the package ApolloVM (that uses PetitParser):

https://pub.dev/packages/apollovm

ApolloVM can run and also can convert from one language to another.

If you implement the JS grammar and also the TS grammar you will be able to make the conversion.

One of the TODOs of the project is JS support, so we can help in the development and tests for JS.

Here you can see a simple web example using it:

https://apollovm.github.io/apollovm_web_example/www/

Note that not all Dart and Java syntax is implemented yet.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #122 on December 29, 2021 09:05.