Skip to content

Commit 9070cb1

Browse files
authored
Merge pull request #782 from jnfoster/v1.2.0-rc
v1.2.0 release candidate
2 parents ddcfd4e + 544fcbf commit 9070cb1

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

p4-16/spec/P4-16-spec.mdk

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Title : P4~16~ Language Specification
2-
Title Note: version 1.1.0
2+
Title Note: version 1.2.0-rc
33
Title Footer: &date;
44
Author: The P4 Language Consortium
55
Heading depth: 5
@@ -2672,7 +2672,7 @@ control d(packet_out b, in Hdr h) {
26722672

26732673
Functions and methods are the only P4 constructs that support
26742674
overloading: there can exist multiple methods with the same name in
2675-
the same scope. Whe overloading is used, the compiler must be able to
2675+
the same scope. When overloading is used, the compiler must be able to
26762676
disambiguate at compile-time which method or function is being called,
26772677
either by the number of arguments or by the names of the arguments,
26782678
when calls are specifying argument names. Argument type information
@@ -4354,7 +4354,7 @@ table tbl {
43544354

43554355
## Operations on types introduced by `type` { #sec-newtype-operations }
43564356

4357-
Values with a type introduced by the `type` keywork provide only few operations:
4357+
Values with a type introduced by the `type` keyword provide only few operations:
43584358

43594359
- assignment to left-values of the same type
43604360
- comparisons for equality and inequality if the original type supported such comparisons
@@ -4491,7 +4491,7 @@ The `initializer` expression must be a compile-time known value.
44914491

44924492
## Variables { #sec-variables }
44934493

4494-
Local variables are declared with an a type, a name, and an optional
4494+
Local variables are declared with a type, a name, and an optional
44954495
initializer (as well as an optional annotation):
44964496

44974497
~ Begin P4Grammar
@@ -7238,7 +7238,7 @@ The P4 compiler should provide:
72387238
| | | restrictions on arguments to calls, and modified precedence of |
72397239
| | | bitwise operators. |
72407240
|-----|-----|-----|
7241-
| 1.2.0 | October, 2019 | Added error `ParserInvalidArgument`, order of `const` entries, |
7241+
| 1.2.0 | October, 14, 2019 | Added error `ParserInvalidArgument`, order of `const` entries, |
72427242
| | | header size methods, 1-bit signed values, signed bit slices, empty |
72437243
| | | tuples, `@deprecated` annotation, free-form annotations, `int` type |
72447244
| | | `table.apply().miss`, `string` type. |
@@ -7248,20 +7248,17 @@ The P4 compiler should provide:
72487248

72497249
* Added `table.apply().miss` (Section [#sec-invoke-mau]).
72507250
* Added `string` type (Section [#sec-string]).
7251-
* Implicit casts from enum values (Section [#sec-enum-exprs]).
7251+
* Added implicit casts from enum values (Section [#sec-enum-exprs]).
72527252
* Allow 1-bit signed values
72537253
* Define the type of bit slices from signed and unsigned values to be unsigned.
72547254
* Constrain `default` label position for `switch` statements.
72557255
* Allow empty tuples.
72567256
* Added `@deprecated` annotation.
72577257
* Relaxed the structure of annotation bodies.
7258-
* Removed the `@pkginfo` annotation. This is defined by the P4Runtime
7259-
specification.
7258+
* Removed the `@pkginfo` annotation, which is now defined by the P4Runtime specification.
72607259
* Added `int` type (Section [#sec-infinite-precision-integers]).
7261-
* Added error `ParserInvalidArgument` (Sections
7262-
[#sec-packet-extract-two], [#sec-skip-bits]).
7263-
* Clarify the significance of order of entries in `const entries`
7264-
(Section [#sec-entries]).
7260+
* Added error `ParserInvalidArgument` (Sections [#sec-packet-extract-two], [#sec-skip-bits]).
7261+
* Clarified the significance of order of entries in `const entries` (Section [#sec-entries]).
72657262
* Added methods to calculate header size (Section [#sec-ops-on-hdrs]).
72667263

72677264
## Summary of changes made in version 1.1.0
@@ -7557,7 +7554,7 @@ parameters: parsers, controls, extern methods, actions, and functions.
75577554
| value types | yes | yes | yes | yes | yes |
75587555
|-------------|-----------|---------|---------|---------|----------|
75597556

7560-
Extern method calls may return only return a value that is a value
7557+
Extern method calls may only return a value that is a value
75617558
type, or no value at all (specified by a return type of `void`).
75627559

75637560
The next table lists restrictions on what kinds of calls can be made

0 commit comments

Comments
 (0)