Skip to content

Substitution#3287

Merged
pirapira merged 3 commits intodevelopfrom
substitution
Dec 6, 2017
Merged

Substitution#3287
pirapira merged 3 commits intodevelopfrom
substitution

Conversation

@chriseth
Copy link
Contributor

@chriseth chriseth commented Dec 5, 2017

This is a new AST tool for the optimizier. Please merge before everything else.

@chriseth chriseth requested a review from axic December 5, 2017 19:14
* Specific AST copier that replaces certain identifiers with expressions.
* Only works on ASTs that are expressions.
*/
class Substitution: public ASTCopier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it works on identifiers I'd call this IndentifierSubstitution.

Copy link
Contributor

@pirapira pirapira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Substitutions usually substitute identifiers.

@pirapira pirapira merged commit c210943 into develop Dec 6, 2017
@pirapira pirapira deleted the substitution branch December 6, 2017 10:12
@axic
Copy link
Contributor

axic commented Dec 6, 2017

Could substitute a bunch of other things here though. Since we'll have a lot of these small steps I'd prefer clear naming, which doesn't necessarily requires someone to read every header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants