Skip to content

Commit 80a0942

Browse files
Mossakalukewagner
authored andcommitted
add more keywords to WIT.md
Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
1 parent 5d5de61 commit 80a0942

File tree

1 file changed

+37
-12
lines changed

1 file changed

+37
-12
lines changed

design/mvp/WIT.md

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ resource XML { ... }
780780
parse-XML-document: func(s: string) -> XML;
781781
```
782782

783-
This form can't lexically represent WIT keywords, so the second form is the
783+
This form can't lexically represent WIT [keywords](#keywords), so the second form is the
784784
same syntax with the same restrictions as the first, but prefixed with '%':
785785

786786
```wit
@@ -856,21 +856,46 @@ bare as an identifier. These are used to help parse the format, and the list of
856856
keywords is still in flux at this time but the current set is:
857857

858858
```ebnf
859-
keyword ::= 'use'
860-
| 'type'
861-
| 'resource'
862-
| 'func'
863-
| 'record'
859+
keyword ::= 'as'
860+
| 'bool'
861+
| 'borrow'
862+
| 'char'
863+
| 'constructor'
864864
| 'enum'
865+
| 'export'
866+
| 'f32'
867+
| 'f64'
865868
| 'flags'
866-
| 'variant'
867-
| 'static'
868-
| 'interface'
869-
| 'world'
869+
| 'from'
870+
| 'func'
871+
| 'future'
870872
| 'import'
871-
| 'export'
872-
| 'package'
873873
| 'include'
874+
| 'interface'
875+
| 'list'
876+
| 'option'
877+
| 'own'
878+
| 'package'
879+
| 'record'
880+
| 'resource'
881+
| 'result'
882+
| 's16'
883+
| 's32'
884+
| 's64'
885+
| 's8'
886+
| 'static'
887+
| 'stream'
888+
| 'string'
889+
| 'tuple'
890+
| 'type'
891+
| 'u16'
892+
| 'u32'
893+
| 'u64'
894+
| 'u8'
895+
| 'use'
896+
| 'variant'
897+
| 'wit'
898+
| 'world'
874899
```
875900

876901
### Integers

0 commit comments

Comments
 (0)