Skip to content

Commit

Permalink
Update AST docs for :inbounds and :boundscheck.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
blakejohnson committed Jan 14, 2016
1 parent 7f330f0 commit 4c93e67
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/devdocs/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,17 @@ These symbols appear in the ``head`` field of ``Expr``\s in lowered form.
``leave``
pop exception handlers. ``args[1]`` is the number of handlers to pop.

``boundscheck``
``inbounds``
controls turning bounds checks on or off. A stack is maintained; if the
first argument of this expression is true or false (``true`` means bounds
checks are enabled), it is pushed onto the stack. If the first argument is
``:pop``, the stack is popped.

``boundscheck``
indicates the beginning or end of a section of code that performs a bounds
check. Like ``inbounds``, a stack is maintained, and the second argument
can be one of: ``true``, ``false``, or ``:pop``.

``copyast``
part of the implementation of quasi-quote. The argument is a surface syntax
AST that is simply copied recursively and returned at run time.
Expand Down

0 comments on commit 4c93e67

Please sign in to comment.