File tree 1 file changed +37
-12
lines changed
1 file changed +37
-12
lines changed Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ resource XML { ... }
780
780
parse-XML-document: func(s: string) -> XML;
781
781
```
782
782
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
784
784
same syntax with the same restrictions as the first, but prefixed with '%':
785
785
786
786
``` wit
@@ -856,21 +856,46 @@ bare as an identifier. These are used to help parse the format, and the list of
856
856
keywords is still in flux at this time but the current set is:
857
857
858
858
``` ebnf
859
- keyword ::= 'use '
860
- | 'type '
861
- | 'resource '
862
- | 'func '
863
- | 'record '
859
+ keyword ::= 'as '
860
+ | 'bool '
861
+ | 'borrow '
862
+ | 'char '
863
+ | 'constructor '
864
864
| 'enum'
865
+ | 'export'
866
+ | 'f32'
867
+ | 'f64'
865
868
| 'flags'
866
- | 'variant'
867
- | 'static'
868
- | 'interface'
869
- | 'world'
869
+ | 'from'
870
+ | 'func'
871
+ | 'future'
870
872
| 'import'
871
- | 'export'
872
- | 'package'
873
873
| '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'
874
899
```
875
900
876
901
### Integers
You can’t perform that action at this time.
0 commit comments