Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is that possible to parse python code to js AST? #231

Closed
wqyyyyyy opened this issue Mar 4, 2020 · 1 comment
Closed

Is that possible to parse python code to js AST? #231

wqyyyyyy opened this issue Mar 4, 2020 · 1 comment

Comments

@wqyyyyyy
Copy link

wqyyyyyy commented Mar 4, 2020

I have read the source code to find the method to parse python code to js AST.At first, I use the method parser.parse to get a simpleStatement class which unlike standard js AST.Is there another method qualified for this work?

@valq7711
Copy link
Collaborator

valq7711 commented Mar 4, 2020

RS uses its own AST which is not js-AST. For example, there is no decorators in js, so how we can use js standard AST?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants