antlr / antlr/antlr4-cpp

Question, possible feature request

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
80
Forks
33
PR merge metrics
No merged PRs in 30d

Description

For data members of rule contexts, is there any particular reason that specifying some rule context class name as the type for a parameter for that some other rule tries to accept the argument only by value instead of by address? Would changing this so that if a type name used for a parameter refers to a rule context name in the grammar, then that parameter is actually just a pointer and not the concrete value cause more issues?

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by tracing how the C++ target represents rule-context types used as grammar parameters, then determine the compatibility and code-generation impact of passing them by address; done requires an agreed behavior and corresponding tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
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.