mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Added raw string literal function calls docs
Got curious as to how re"..." worked.
This commit is contained in:
@@ -231,6 +231,25 @@ AST:
|
||||
nnkStrLit("hallo")
|
||||
)
|
||||
|
||||
Call with raw string literal
|
||||
----------------------------
|
||||
|
||||
This is used, for example, in the ``bindSym`` examples
|
||||
[here](http://nim-lang.org/docs/manual.html#macros-bindsym) and with
|
||||
``re"some regexp"`` in the regular expression module.
|
||||
|
||||
Concrete syntax:
|
||||
|
||||
.. code-block:: nim
|
||||
echo"abc"
|
||||
|
||||
AST:
|
||||
|
||||
.. code-block:: nim
|
||||
nnkCallStrLit(
|
||||
nnkIdent(!"echo"),
|
||||
nnkRStrLit("hello")
|
||||
)
|
||||
|
||||
Dereference operator ``[]``
|
||||
---------------------------
|
||||
|
||||
Reference in New Issue
Block a user