Skip to content

Commit

Permalink
NodePattern: Optimize by using placeholders for post processing
Browse files Browse the repository at this point in the history
This as multiple benefits:
- allows more flexible handling of future multiple match patterns.
  Handling of '...' was already using a less flexible post-processing.
- deals automatically and better with generated temporary variables
- much less argument passing to the various compiling methods
- factorizes the `#{'.type' if seq_head}` pattern that was everywhere.
- makes debugging easier with simpler & nicer generated code
  • Loading branch information
marcandre authored and bbatsov committed Apr 10, 2019
1 parent 5fdfea8 commit c6ef624
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 108 deletions.

0 comments on commit c6ef624

Please sign in to comment.