-
Notifications
You must be signed in to change notification settings - Fork 3
implementation notes
Timothee Cour edited this page Mar 23, 2020
·
2 revisions
- example PR showing a change in parser new syntax for lvalue references:
byaddr x = expr
by timotheecour · Pull Request #13342 · nim-lang/Nim : new syntax for lvalue references:byaddr x = expr
by timotheecour · Pull Request #13342 · nim-lang/Nim
- example showing using a regular nim callback to implement a compiler semExpr
if b[1][0].whichPragma == wByAddr3:
if n.len == 1:
result = newTree(nkCall)
result.add newIdentNode(getIdent(c.cache, "byAddr3Impl"), n.info)
result.add b[0]
result.add a[2]
result = semExprNoType(c, result)
(extracted from https://github.com/nim-lang/Nim/pull/13508)