Lark: Best way to parse s-expressions in Python

Created on 28 Jul 2020  路  2Comments  路  Source: lark-parser/lark

What is your question?

What is the difference between using lark vs sexpdata for parsing s-expressions?

related: https://github.com/jd-boyd/sexpdata/issues/27

If you're having trouble with your code or grammar

No issues. Just curious.

question

All 2 comments

sexpdata is specialized for s-expressions, lark is a general EBNF parsing library. With lark you have to write the grammar yourself. If sexpdata is optimized for performance, it will be faster.

I'll just add the obvious, that with Lark it would then be possible to extend the syntax.

Was this page helpful?
0 / 5 - 0 ratings