Tree-sitter: Sparql grammar is slow to generate

Created on 15 Oct 2020  路  3Comments  路  Source: tree-sitter/tree-sitter

I am writing a grammar for sparql and generating a parser takes too much time.
How do I now which rules are causing this?
Can I profile somehow the generate process?

bug

All 3 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.55. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

BonaBeavis notifications@github.com writes:

I am writing a grammar for
sparql and
generating a parser takes too much time.
How do I now which rules are causing this?
Can I profile somehow the generate process?

I can't help with these questions, but you might try WisiToken
(https://stephe-leake.org/ada/wisitoken.html); it handles large grammars
better.

--
-- Stephe

Found the underlying issue #778.

Was this page helpful?
0 / 5 - 0 ratings