system.locals is now a plugin for education
This commit is contained in:
parent
c8bebe92e2
commit
0c947f31ba
8 changed files with 62 additions and 36 deletions
|
|
@ -15,6 +15,10 @@ const
|
|||
import ast, astalgo, types, idents, magicsys, msgs, options
|
||||
from trees import getMagic
|
||||
|
||||
proc newDeref*(n: PNode): PNode {.inline.} =
|
||||
result = newNodeIT(nkHiddenDeref, n.info, n.typ.sons[0])
|
||||
addSon(result, n)
|
||||
|
||||
proc newTupleAccess*(tup: PNode, i: int): PNode =
|
||||
result = newNodeIT(nkBracketExpr, tup.info, tup.typ.skipTypes(
|
||||
abstractInst).sons[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue