Skip to content

Commit f55ca86

Browse files
authored
Merge pull request #18 from fibonacci1729/update-readme
Update grammar import-export rules to use 'as'
2 parents be9138f + 9404148 commit f55ca86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package-decl ::= `package` package-name `;`
1313
package-name ::= id (':' id)+ ('@' version)?
1414
version ::= <SEMVER>
1515
16-
import-statement ::= 'import' id ('with' string)? ':' import-type ';'
16+
import-statement ::= 'import' id ('as' string)? ':' import-type ';'
1717
import-type ::= package-path | func-type | inline-interface | id
1818
package-path ::= id (':' id)+ ('/' id)+ ('@' version)?
1919
@@ -102,7 +102,7 @@ postfix-expr ::= access-expr | named-access-expr
102102
access-expr ::= '.' id
103103
named-access-expr ::= '[' string ']'
104104
105-
export-statement ::= 'export' expr ('with' string)? ';'
105+
export-statement ::= 'export' expr ('as' string)? ';'
106106
107107
id ::= '%'?[a-z][a-z0-9]*('-'[a-z][a-z0-9]*)*
108108
string ::= '"' character-that-is-not-a-double-quote* '"'

0 commit comments

Comments
 (0)