Skip to content

Commit

Permalink
port grammar, part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner committed Sep 25, 2024
1 parent 98d3f1d commit cdd12d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions standard/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ The types of the C# language are divided into two main categories: ***reference

```ANTLR
type
: reference_type
| value_type
: value_type
| reference_type
| nullable_type_parameter
| type_parameter
| pointer_type // unsafe code support
| type_unsafe
;
```

Expand Down Expand Up @@ -597,10 +598,11 @@ Since type parameters are not inherited, constraints are never inherited either.
A type parameter is an identifier designating a value type or reference type that the parameter is bound to at run-time.
type_parameter, nullable_type_parameter, non_nullable_non_value_type_parameter
```ANTLR
type_parameter
: identifier
;
nullable_type_parameter
: non_nullable_non_value_type_parameter '?'
Expand Down

0 comments on commit cdd12d4

Please sign in to comment.