Skip to content

Commit

Permalink
Update version number.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan DiLorenzo <dilo@google.com>
  • Loading branch information
jonathan-dilorenzo committed Oct 10, 2024
1 parent 0b6c4b7 commit c3abc57
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions p4-16/spec/P4-16-spec.mdk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Title : P4~16~ Language Specification
Title Note: version 1.2.4
Title Note: version 1.2.5
Title Footer: &date;
Author: The P4 Language Consortium
Heading depth: 5
Expand Down Expand Up @@ -3466,7 +3466,7 @@ to bit-strings of the same width:

Bit-strings also support the following operations:

- Logical shift left and right by a non-negative integer value (which need not be
- Logical shift left and right by a non-negative integer value (which need not be
a compile-time known value), denoted by `<<` and `>>` respectively.
In a shift, the left operand is unsigned, and right operand must be either an
expression of type `bit<S>` or a non-negative integer value that is known at
Expand Down Expand Up @@ -3783,7 +3783,7 @@ The following casts are legal in P4:
- casts of a tuple expression to a header stack type
- casts of an invalid expression `{#}` to a header or a header union type
- casts where the destination type is the same as the source type
if the destination type appears in this list (this excludes
if the destination type appears in this list (this excludes
e.g., parsers or externs).

### Implicit casts { sec-implicit-casts }
Expand Down Expand Up @@ -4312,7 +4312,7 @@ expressions are legal:
- `hs[index]`: produces a reference to the header at the
specified position within the stack; if `hs` is an l-value,
the result is also an l-value. The header may be invalid. Some implementations
may impose the constraint that the index expression must be a compile-time known value.
may impose the constraint that the index expression must be a compile-time known value.
A P4 compiler must give an error if an index that is a compile-time known value is out of range.

Accessing a header stack ``hs`` with an index less than `0` or
Expand Down Expand Up @@ -4401,7 +4401,7 @@ void pop_front(int count) {
}
~ End P4Pseudo

Similar to structs and headers, the size of a header stack is a compile-time known value
Similar to structs and headers, the size of a header stack is a compile-time known value
(Section [#sec-minsizeinbits]).

Two header stacks can be compared for equality (`==`) or inequality (`!=`)
Expand All @@ -4424,7 +4424,7 @@ expression ...
The `typeRef` is a header stack type. The `typeRef` can be omitted if
it can be inferred from context, e.g., when initializing a variable
with a header stack type. Each expression in the list must evaluate
to a header of the same type as the other stack elements.
to a header of the same type as the other stack elements.

Here is an example:

Expand Down Expand Up @@ -7053,7 +7053,7 @@ because of the `@noWarn("duplicate_priorities")` annotation.
#### Size {#sec-size-table-property}

The `size` is an optional property of a table. When present, its
value must always be a compile-time known value that is an integer. The `size` property
value must always be a compile-time known value that is an integer. The `size` property
is specified in units of number of table entries.

If a table is specified with a `size` property of value `N`, it is
Expand Down Expand Up @@ -8322,7 +8322,7 @@ a key and a value `expression`. Note the syntax for `expression` is rich, see
Appendix [#sec-grammar] for details.

All `expression`s within a `structuredAnnotationBody` must be compile-time known
values with a result type that is either: `string`, `int`, or `bool`.
values with a result type that is either: `string`, `int`, or `bool`.
In particular, structured `expression`s (e.g. an `expression` containing an
`expressionList`, a `kvList`, etc.) are not allowed. Note that P4Runtime
information (P4Info) may stipulate additional restrictions. For example, an
Expand Down

0 comments on commit c3abc57

Please sign in to comment.