Looking for Feedback regarding Interpreter in V #23034
Unanswered
miraculli
asked this question in
Questions and Answers
Replies: 3 comments
-
I don't know much about writing parsers and interpreters, but I think you might find this example useful https://github.com/shineslove/monkey_v |
Beta Was this translation helpful? Give feedback.
0 replies
-
Check here for examples: https://github.com/vlang/awesome-v?tab=readme-ov-file#interpreterscompilers |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also see |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi V-Enthusiast,
I only have decent developer experience and basically in OOP-Languages. I came across V and thought this could be the right choice for a project I have in mind vor quite some time now: A visual, collaborative flow-programming low-code platform.
The basic idea is to let the user create and manipulate a tree of nodes or "Ops" and connect the output of one node to the input of the other. Something like that is quite common and VFX/CG industry etc. For the user everything should feel more like a dynamic language and debugging, profiling, reflections stuff should be possible.
So my problem is a little bit how to "compose" this three topics: Nodes, Ops and Types.
So this is what I came up with by tinkering, reading docs, exploring some V features, ask ChatGPT and so on. I think it could work like that but overall I feel this not how V works because I think too much in OOP-Patterns
Types:
Nodes and Ops
In general I struggle with this mixed the Node.slots and fields of an Op which should be somehow get defined during the walk(). Now, after further reading the docs I´m not sure if something completely different like utilizing
comptime
or@[params]
is the way to go here?!I hope I could describe where I am at and where I want to go and someone finds this interesting enough to give some god advice.
Thanks so far
:wq mirac
Beta Was this translation helpful? Give feedback.
All reactions