diff options
author | Adam Strzelecki <ono@java.pl> | 2015-06-02 21:56:44 +0200 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-06-02 21:58:14 +0200 |
commit | b0db8126a52fd48352b0b2ce8c7d99e0c98083ef (patch) | |
tree | 0fadc191680eff794b70befbf7d002a7ab11e9cf /compiler/lambdalifting.nim | |
parent | 2f5ed17cfe21011dfba30dc10ea7f478c0d67d21 (diff) | |
download | Nim-b0db8126a52fd48352b0b2ce8c7d99e0c98083ef.tar.gz |
Parser: Inline expr pragmas with parenthesis
Previously pragmas could be attached only to whole statements, this change allows attaching pragmas to inline statements, eg.: template rewriteAdd{a + b}(a: expr, b: expr): expr = ({.noRewrite.}: a + b) + 1 Code above will cause a + b to be rewritten once, because rewriteAdd attaches {.noRewrite.} to resulting a + b expr.
Diffstat (limited to 'compiler/lambdalifting.nim')
0 files changed, 0 insertions, 0 deletions