Skip to content

Commit 69c31d8

Browse files
committed
---
yaml --- r: 216887 b: refs/heads/stable c: ab913c8 h: refs/heads/master i: 216885: 9eaabf8 216883: 2b10942 216879: 6a6ce18 v: v3
1 parent 4bf45c6 commit 69c31d8

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: a5c651cfdfe78d464653d63cc5b6496f50c2fab0
32+
refs/heads/stable: ab913c881cfd559591fcde3ca1c82c784c5aab87
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/src/doc/grammar.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -434,26 +434,19 @@ meta_seq : meta_item [ ',' meta_seq ] ? ;
434434

435435
## Statements
436436

437-
**FIXME:** grammar?
437+
```antlr
438+
stmt : decl_stmt | expr_stmt ;
439+
```
438440

439441
### Declaration statements
440442

441-
**FIXME:** grammar?
442-
443-
A _declaration statement_ is one that introduces one or more *names* into the
444-
enclosing statement block. The declared names may denote new variables or new
445-
items.
443+
```antlr
444+
decl_stmt : item | let_decl ;
445+
```
446446

447447
#### Item declarations
448448

449-
**FIXME:** grammar?
450-
451-
An _item declaration statement_ has a syntactic form identical to an
452-
[item](#items) declaration within a module. Declaring an item — a
453-
function, enumeration, structure, type, static, trait, implementation or module
454-
— locally within a statement block is simply a way of restricting its
455-
scope to a narrow region containing all of its uses; it is otherwise identical
456-
in meaning to declaring the item outside the statement block.
449+
See [Items](#items).
457450

458451
#### Variable declarations
459452

@@ -464,7 +457,9 @@ init : [ '=' ] expr ;
464457

465458
### Expression statements
466459

467-
**FIXME:** grammar?
460+
```antlr
461+
expr_stmt : expr ';' ;
462+
```
468463

469464
## Expressions
470465

0 commit comments

Comments
 (0)