Stream: helpdesk (published)

Topic: Parsers for REPLMaker


view this post on Zulip Kwaku Oskin (Jul 12 2021 at 12:13):

Well, ReplMaker.jl is so much fun! I am using for small interactive tools for web apps. But after playing with it for some time, I wonder, is there any good Julia packages for building grammar? Maybe it should have a different name, but really, to read an expression and somehow tokenize it, extract rules and finally build Julia AST.

I am currently doing it manually with regexps and some tricks, but I think there should be something better.

view this post on Zulip Kwaku Oskin (Jul 12 2021 at 12:14):

My knowledge in this area is very limited, but I've seen things like https://github.com/orangeduck/mpc. It looks like this approach can be reproduced in Julia as well.

view this post on Zulip Mason Protter (Jul 12 2021 at 21:54):

Glad you like REPLMaker!

view this post on Zulip Mason Protter (Jul 12 2021 at 21:55):

I’m not too knowledgeable about parsers, but maybe look into https://github.com/andrewcooke/ParserCombinator.jl I hear this approach is really powerful

view this post on Zulip Kwaku Oskin (Jul 13 2021 at 03:55):

Thank you, it looks promising.


Last updated: Nov 22 2024 at 04:41 UTC