Skip to content

Commit

Permalink
BSV Ref Guide: Fix the syntax for struct patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
quark17 committed Aug 5, 2023
1 parent de46310 commit 42fb7b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/BSV_ref_guide/BSV_lang.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7312,7 +7312,7 @@ \section{Pattern matching}

\gram{taggedUnionPattern}{ \term{tagged} \nterm{Identifier} \opt{ \nterm{pattern} } }

\gram{structPattern}{ \term{tagged} \nterm{Identifier}
\gram{structPattern}{ \nterm{Identifier}
\term{\{}
\nterm{identifier} \term{:} \nterm{pattern}
\many{ \term{,}
Expand Down Expand Up @@ -7343,9 +7343,9 @@ \section{Pattern matching}
is not a \texttt{void} member, it must be followed by a pattern for that
member.

In a struct pattern, the \nterm{Identifier} following the
{\term{tagged}} keyword is the type name of the struct as given in its
typedef declaration. Within the braces are listed, recursively, the
A struct pattern consists of an identifier followed by braces, where
the identifier is the type name of the struct as given in its typedef
declaration. Within the braces are listed, recursively, the
member name and a pattern for each member of the struct. The members
can be listed in any order, and members can be omitted.

Expand Down

0 comments on commit 42fb7b6

Please sign in to comment.