Frontend for another language for JSImpl #105
Replies: 6 comments 13 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Аз бих искал да правя този проект. Ще правя фронтенд за Python. Междудругото може ли да постнете example output за това как трябва да изглежда AST-то задължително. |
Beta Was this translation helpful? Give feedback.
-
Аз също искам да правя този проект за C++, но ще трябва да знам как ще изглежда AST? Дайте повече информация, ако може. |
Beta Was this translation helpful? Give feedback.
-
Здравейте, бих искал да направя frontend за Lisp. |
Beta Was this translation helpful? Give feedback.
-
Аз също искам да правя този проект. Към момента не съм се спрял на конкретен език. Бих се радвал на предложения. |
Beta Was this translation helpful? Give feedback.
-
Create a lexer and a parser for another language that will produce the AST in the same JSON format as JSImpl, so that Spasm can be used to interpret that language.
You can also skip the JSON step by directly using the AST C++ classes.
So there are two approaches:
Produce JSON. The format
is basically serialization of the AST. You can see the JSON Printer
Fork the repo, add a folder
<Language>
with a lexer and parser inside and directly use the AST in JSImplBeta Was this translation helpful? Give feedback.
All reactions