Clarified AST
Generic parameters are treated in the next paragraph. Revised text for future compatibility
This commit is contained in:
parent
38cb13cde5
commit
ac6ea4b76d
1 changed files with 4 additions and 4 deletions
|
|
@ -133,7 +133,7 @@ AST:
|
||||||
)
|
)
|
||||||
|
|
||||||
Note that with multiple infix operators, the command is parsed by operator
|
Note that with multiple infix operators, the command is parsed by operator
|
||||||
precedence, with the end result mirroring Reverse Polish Notation.
|
precedence.
|
||||||
|
|
||||||
Concrete syntax:
|
Concrete syntax:
|
||||||
|
|
||||||
|
|
@ -408,8 +408,8 @@ Documentation Comments
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
Double-hash (``##``) comments in the code actually have their own format,
|
Double-hash (``##``) comments in the code actually have their own format,
|
||||||
but *it doesn't matter what is there*. The AST will only show that a comment
|
but the comments do not yet show up in the AST, which will only show that
|
||||||
exists, not what it contains. Single-hash (``#``) comments are ignored.
|
a comment exists, not what it contains. Single-hash (``#``) comments are ignored.
|
||||||
|
|
||||||
Concrete syntax:
|
Concrete syntax:
|
||||||
|
|
||||||
|
|
@ -785,7 +785,7 @@ AST:
|
||||||
nnkTypeSection(
|
nnkTypeSection(
|
||||||
nnkTypeDef(
|
nnkTypeDef(
|
||||||
nnkIdent(!"A"),
|
nnkIdent(!"A"),
|
||||||
nnkEmpty(), # for pragmas
|
nnkEmpty(),
|
||||||
nnkIdent(!"int")
|
nnkIdent(!"int")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue