Skip to content

Would scryer-prolog be usable to write parsers for lightweight markup languages? #1599

Answered by alexpdp7
alexpdp7 asked this question in Q&A
Discussion options

You must be logged in to vote

An update.

https://github.com/alexpdp7/prolog-parsing/blob/main/asciidoc_poc.pro

This has the "minor" issues that the plunit tests don't work under Scryer, and that Scryer doesn't have flatten/2 (but then, I shouldn't be using it- I'm lazy), but that's a parser for a minimal "hard" subset of AsciiDoc- and my only experience with Prolog until recently was a semester in University (not writing parsers) like 20 years ago.

I've moved to SWI because the tooling is a bit more complete, but if I spend more time on this I'll definitely fix the small compat issues and do some benchmarking!

Replies: 4 comments 19 replies

Comment options

You must be logged in to vote
4 replies
@alexpdp7
Comment options

@alexpdp7
Comment options

@alexpdp7
Comment options

@triska
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@alexpdp7
Comment options

@pmoura
Comment options

@alexpdp7
Comment options

@gitonthescene
Comment options

@alexpdp7
Comment options

Answer selected by alexpdp7
Comment options

You must be logged in to vote
7 replies
@gitonthescene
Comment options

@infogulch
Comment options

@gitonthescene
Comment options

@infogulch
Comment options

@gitonthescene
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants