AST quasi-quoting for macros
This commit is contained in:
parent
a31a5f9c81
commit
32d0ac01dc
8 changed files with 130 additions and 15 deletions
|
|
@ -898,7 +898,7 @@ proc evalIsOp*(n: PNode): PNode =
|
|||
result.typ = n.typ
|
||||
|
||||
proc expectString(n: PNode) =
|
||||
if n.kind notin {nkStrLit, nkRStrLit, nkTripleStrLit}:
|
||||
if n.kind notin nkStrKinds:
|
||||
GlobalError(n.info, errStringLiteralExpected)
|
||||
|
||||
proc evalSlurp*(e: PNode, module: PSym): PNode =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue