the.bay.news

[ANN] PikaMacros.jl: Declarative grammars via PikaParser.jl

Julia Programming Language
[ANN] PikaMacros.jl: Declarative grammars via PikaParser.jl
Hi all, This is a small package meant to provide a front-end syntax to the excellent PikaParser.jl package. This package can be used to parse arbitrary strings, or for implementing DSLs via str and cmd macros. For an example, here is a simple arithmetic evaluator: syn = @syntax :top begin :ws => many(satisfy(isspace)) :number => some(:digit => satisfy(isdigit)) :plus => seq(:pexpr, :ws, token('+'), :ws, :pexpr, :ws) :minus => seq(:pexpr, :ws, token('-'), :ws, :pexpr, :...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.