Skip to content

Conversation

parrt
Copy link
Member

@parrt parrt commented Feb 16, 2017

The new methods act like a built-in factory during parse tree construction. In the end it is a fairly minor change, but since I moved some methods around in Parser, it looks bigger than it is. All I did was to convert new TerminalNodeImpl and new ErrorNodeImpl code to calls to the factory methods. I also cleaned up ParserRuleContext add child stuff.

@antlr/antlr-targets should consider updating their targets as it adds flexibility that will be handy in a future PR where I support tree construction that contains hidden text before/after nodes.

…ser so that they act like a built-in factory during parse tree construction.
@parrt parrt added this to the 4.6.1 milestone Feb 16, 2017
@parrt parrt merged commit 628aa8f into antlr:master Feb 16, 2017
@hanjoes
Copy link
Member

hanjoes commented Feb 16, 2017 via email

@willfaught
Copy link
Contributor

@parrt Can you create issues to track this work for the targets? Not able to work on it at the moment.

@parrt
Copy link
Member Author

parrt commented Feb 18, 2017

I updated this branch with a continue PR. #1674

hanjoes added a commit to hanjoes/antlr4 that referenced this pull request Feb 25, 2017
parrt added a commit that referenced this pull request Mar 1, 2017
C++ implementation of issue #1665 and issue #1674
parrt added a commit that referenced this pull request Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants