antlr / antlr/antlr4

Make creating parser/lexer/etc sequence easier

Open
#669 13 comments 0 reactions 0 assignees View on GitHub
code-gen comp:runtime type:feature
Dominant language
Java
Stars
19k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

To create a parser, you have to create about 5 different objects, most of which are not referenced again. That's quite cumbersome. Maybe a `*Recognizer` class could be generated which automatically creates the `*Parser`, `*Lexer`, and `CommonTokenStream`, and provides accessors for them, in case you need them.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are identified in the issue. Start by locating how the Parser, Lexer, and CommonTokenStream are currently created and determine how a generated Recognizer could expose them; done means a simpler creation sequence with accessors for those objects.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.