I think i finally understood parsing
-
@LucasJG25 thank you. So i would say i now found a way
-
@petermeisenstein Indeed, you're getting there. Keep up the good work!
-
@LucasJG25 Btw the Wikipedia article looks very complex and not sure if my level of english is enough for this. but thank you very much again for the ivestment of your time to lookup this article
-
@petermeisenstein It's cool. I'm not sure if you can change the language on that page or if you can translate it with google translate. But Happy to share my knowledge with you. Hope you keep posting your progress on the forums. It's been a bit lonely since I haven't been seeing anyone else posting ideas or concepts on parsing or compiler design. :D
-
@LucasJG25 One issue is that fuze or the existence of fuze or the reason why fuze exists is not to build such things like parsers or whatever. You can see this on the language it self because it is not offering things like regex for example. Fuze has a big advantage when it comes to games and graphical stuff
-
@petermeisenstein Though it's true that Fuze doesn't come with things like regex. These are language features that help make the process of compiler design much easier. Mostly in the lexer field. Regex is just a pattern matcher which is kind of what a DFA can do as well.
Fuze not having regex can make things a bit harder when dealing with projects which focus on compiler concepts. But that's the charm of Fuze. To make your own functions or add your own data structures.
I believe that great programmers stem from situation where they may be limited whether in hardware or software. We always come up with amazing solutions.
-
@LucasJG25 I get your point like to build things by your self. I usually like todo this as well without using much libraries and so on. But you need to think about it from a different way. Why should you do everything from nothing. Thats the point of most programming languages to use libraries. Imagine you would do everything from nothing on your pc as well. Writing code for communication with the hardware in x86 Assembly and so on. Sometimes its good to write things yourself but sometimes not.
-
@petermeisenstein Indeed. I too understand your point of view. But I'm just that kind of guy that loves the low level stuff. That's just my character :D
-
@LucasJG25 You know what would help me when you try to use the code snippet (rebuild it in fuze or python ) and then try to apply abstract syntax tree to it and show me the result. Best thing would be to code this as easy as possible. So when you have time and want to this is a challenge for you.
-
@petermeisenstein interesting! I have been thinking about getting ASTs (Abstract Syntax Trees) made in Fuze. Will take some time since I'm working on other projects currently. But once I have it made I'll post a link to the Share code here. :D
-
@LucasJG25 Okay please try to make it as simple as possible
-
@petermeisenstein Ok sounds good.