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.
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.
Glad you like REPLMaker!
I’m not too knowledgeable about parsers, but maybe look into https://github.com/andrewcooke/ParserCombinator.jl I hear this approach is really powerful
Thank you, it looks promising.
Last updated: Nov 06 2024 at 04:40 UTC