draftASP.jl 189 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 using ParserCombinator symbolic_constant = p"[a-z]([a-zA-Z0-9_]*)" grammar = symbolic_constant + Eos() source = "A" expr = parse_one(source, grammar)[1] println("Source $source => $expr")