diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-03-01 22:19:21 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-03-03 20:34:27 -0800 |
commit | 7b9bddde85faabb4660be739dbec0246a91636fc (patch) | |
tree | e16b4242c6a0fd460d6ff650361cf418950cf1f0 | |
parent | 23ab2cac2d97dd1aeec841dcaae36bdd66515f39 (diff) | |
download | mc-7b9bddde85faabb4660be739dbec0246a91636fc.tar.gz |
Fix grammar mistakes.
Missing quotes, unionbody, structbody.
-rw-r--r-- | doc/lang.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lang.txt b/doc/lang.txt index c1b6bb1..6b61c19 100644 --- a/doc/lang.txt +++ b/doc/lang.txt @@ -1948,7 +1948,7 @@ TABLE OF CONTENTS: toplev: use | pkgdef | decl | traitdef | impldef | tydef /* packages */ - use: use ident | strlit + use: "use" ident | strlit pkgdef: "pkg" [ident] "=" pkgbody ";;" pkgbody: (decl | attrs tydef | traitdef | impldef)* @@ -1973,7 +1973,9 @@ TABLE OF CONTENTS: type: structdef | uniondef | tupledef | constructed | generic | "..." structdef: "struct" structbody ";;" + structbody: declcore* uniondef: "union" unionbody ";;" + unionbody: ("`" ident [type])* tupledef: "(" type ("," type)* ")" generic: typaram ["::" traitlist] traitlist: name | "(" name ("," name) |