:= templatable; lexer improvements
This commit is contained in:
parent
e487c0a249
commit
48dd9679bd
11 changed files with 117 additions and 166 deletions
8
tests/accept/compile/ttempl4.nim
Normal file
8
tests/accept/compile/ttempl4.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
template `:=`(name, val: expr): stmt =
|
||||
var name = val
|
||||
|
||||
ha := 1
|
||||
hu := "ta-da"
|
||||
echo ha, hu
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue