diff options
author | Melody Horn <melody@boringcactus.com> | 2020-11-02 13:37:32 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-11-02 13:37:32 -0700 |
commit | 8868b5fa2e8b9f40a31035c51519cce40e73f079 (patch) | |
tree | 4a91e7d5437f91a7f95358753097a99e2c84cf2e /language/statements/index.rst | |
parent | 83e23b6b449112f4a85d09c57e5601faa87856ca (diff) | |
download | spec-8868b5fa2e8b9f40a31035c51519cce40e73f079.tar.gz spec-8868b5fa2e8b9f40a31035c51519cce40e73f079.zip |
define compile-time vs runtime behavior
Diffstat (limited to 'language/statements/index.rst')
-rw-r--r-- | language/statements/index.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/language/statements/index.rst b/language/statements/index.rst new file mode 100644 index 0000000..38bfbb1 --- /dev/null +++ b/language/statements/index.rst @@ -0,0 +1,23 @@ +Statements +---------- + +.. crowbar:element:: Block <- '{' Statement* '}' + + Compile-time Behavior: + + A block is a possibly-empty sequence of statements surrounded by curly braces. + Any declaration or definition within the block must not be visible outside of the block. + + Runtime Behavior: + + When a block is executed, each of the containing statements, in linear order, is executed. + +.. crowbar:element:: Statement <- VariableDefinition / StructureStatement / FlowControlStatement / AssignmentStatement / FragileStatement / ExpressionStatement + + Crowbar has many different types of statement. + +.. toctree:: + :maxdepth: 1 + + variables + structure |