Sep-12-2021, 05:09 PM
Hello.
I'm implementing some logic system from ground up using this framework: https://www.logicthrupython.org/api/index.html
Now, for implementing this method: https://www.logicthrupython.org/api/pred...rse_prefix
I had to implement a recursive-descent parser.
I'm not sure that my design was too good and my code is Pythonic enough, so I'd be glad to share my code below, and hear recommendations/modifications.
Also, you can see another question I have commented with TODO in code:
Pastebin link: https://pastebin.com/zTF26FAh
I'm implementing some logic system from ground up using this framework: https://www.logicthrupython.org/api/index.html
Now, for implementing this method: https://www.logicthrupython.org/api/pred...rse_prefix
I had to implement a recursive-descent parser.
I'm not sure that my design was too good and my code is Pythonic enough, so I'd be glad to share my code below, and hear recommendations/modifications.
Also, you can see another question I have commented with TODO in code:
Pastebin link: https://pastebin.com/zTF26FAh