antlr / antlr/antlr4

#2135 does not allow multiple lexer imports within same file

Open
#2,829 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
19k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

#2135 does not allow multiple lexer imports within same file
Grammar:
```
options { tokenVocab=SomeLexer; }
```
Lexer:
```
lexer grammar SomeLexer;
import x;
import y;
```
Nor
```
lexer grammar SomeLexer;
import y;
```
Not permitted.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Reproduce the shown lexer grammars and trace the parser-generator handling of lexer imports; done means both single- and multiple-import forms are accepted with tokenVocab.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.