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 committed Apr 9, 2019
1 parent f95803a commit c89a32c
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 108 deletions.

0 comments on commit c89a32c

Please sign in to comment.