Skip to content

Commit

Permalink
fix spec for optional terminal semicolons (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity authored Jun 30, 2023
1 parent c9c85d0 commit e73a8c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Candid.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ The purpose of an IDL is defining the signature, and thereby the *type* of an ac

This is a summary of the grammar proposed:
```
<prog> ::= <def>;* <actor>;?
<prog> ::= <def>;* <actor>?
<def> ::= type <id> = <datatype> | import <text>
<actor> ::= service <id>? : (<tuptype> ->)? (<actortype> | <id>)
<actor> ::= service <id>? : (<tuptype> ->)? (<actortype> | <id>) ;?
<actortype> ::= { <methtype>;* }
<methtype> ::= <name> : (<functype> | <id>)
Expand Down

0 comments on commit e73a8c9

Please sign in to comment.