eclipse-xtext / eclipse-xtext/xtext

Allow several entry rules

Open
#2,597 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
831
Forks
330
Avg merge
3d 7h
Merged PRs (30d)
12

Description

I would like to use different entry grammar rules depending on a URI extension, but unused grammar rules are optimized away during generation. As a workaround, i introduce the top rule that is an alternative to entry rules.

Contributor guide

Open the contributing guide

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 examining the grammar-generation behavior described in the issue, especially why unused entry rules are optimized away. Determine the intended support for selecting different entry grammar rules by URI extension and define completion as supporting that use case without requiring a top-rule workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.