lark-parser / lark-parser/lark_syntax

interactive feedback on currently open grammar file ?

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
No language data
Stars
16
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Would it be feasible to add a feature for the user to check his grammar in the editor ?

I am thinking something along the lines of https://omrelli.ug/nearley-playground/
that provides an interactive feedback to the user creating a grammar, via examples.
Or maybe being able to use the lark for syntax highlighting in other open files...

Of course, many kind of visualisations are possible (showing parse trees, etc.).
The point here is to get some bare minimum of interactive feedback directly in the editor, without having to code anything.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the requested interactive grammar feedback and the nearley playground referenced in the issue. The issue also suggests syntax highlighting in other open files and visualizations such as parse trees, but it does not name files, tests, or an implementation entry point. Done would require agreeing on a concrete minimum feature and its editor integration.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.