MommaWatasu / OteraEngine.jl

This package is a template engine for Julia Lang.
https://mommawatasu.github.io/OteraEngine.jl/stable
MIT License
20 stars 4 forks source link

Custom Parser #22

Closed NegaScout closed 7 months ago

NegaScout commented 10 months ago

Hey!

Project looking good. I am also interested in templating packages, however I did not manage to write anything consistent. However, I wanted to implement parsing via CombinedParsers.jl and parsing expresions to Julia expr via Meta.parse() for easy evaluation via Meta.eval(). Maybe you find these ideas useful

MommaWatasu commented 10 months ago

Hi, @NegaScout .

Thank you for your suggestion. I checked CombinedParser.jl and found it useful. However, CombinedParsers.jl is no longer maintained. The latest release was on two years ago. The current stable version of Julia is v1.9.4(and development of v1.10 is progressing), so v1.8, which is latest version supported by CombineParser.jl, is too old. Thus, maybe I’ll develop own parser like that, but I don’t think I should use CombinedParser.jl itself. If you know the alternative package(which is still maintained), please let me know.

NegaScout commented 10 months ago

There is also Automa.jl (which is actively maintained), but it does not have such easy to use interface as CombinedParsers.jl imho

MommaWatasu commented 7 months ago

I implemented new parser with tokenizer. Thank you for your suggestion.