@@ -6045,8 +6045,7 @@ parser Top(packet_in b, out Parsed_headers headers) {
6045
6045
}
6046
6046
6047
6047
state parse_ipv4_options {
6048
- // use information in the ipv4 header to compute the number
6049
- // of bits to extract
6048
+ // use information in the ipv4 header to compute the number of bits to extract
6050
6049
b.extract(headers.ipv4options,
6051
6050
(bit<32>)(((bit<16>)headers.ipv4.ihl - 5) * 32));
6052
6051
transition dispatch_on_protocol;
@@ -6071,7 +6070,7 @@ where `T` must be a type with fixed width. In case of success the
6071
6070
result of the evaluation of `lookahead` returns a value of type `T`.
6072
6071
6073
6072
In terms of the `ParserModel`, the semantics of `lookahead` is
6074
- given by the following pseudo-code :
6073
+ given by the following pseudocode :
6075
6074
6076
6075
~ Begin P4Pseudo
6077
6076
T packet_in.lookahead<T>() {
@@ -6121,7 +6120,7 @@ Another way is to use the `advance` method of the packet when the
6121
6120
number of bits to skip is known.
6122
6121
6123
6122
In terms of the `ParserModel`, the meaning of `advance` is
6124
- given in pseudo-code as follows:
6123
+ given in pseudocode as follows:
6125
6124
6126
6125
~ Begin P4Pseudo
6127
6126
void packet_in.advance(bit<32> bits) {
@@ -6196,7 +6195,7 @@ parser P(packet_in b, out Pkthdr p) {
6196
6195
P4 allows parsers to invoke the services of other parsers, similar to
6197
6196
subroutines. To invoke the services of another parser, the sub-parser
6198
6197
must be first instantiated; the services of an instance are invoked by
6199
- calling it using its apply method.
6198
+ calling it using its ` apply` method.
6200
6199
6201
6200
The following example shows a sub-parser invocation:
6202
6201
@@ -6230,7 +6229,7 @@ The semantics of a sub-parser invocation can be described as follows:
6230
6229
[]{tex-cmd: "\indent"}
6231
6230
Figure [#fig-subparser] shows a diagram of this process.
6232
6231
6233
- Note that since P4 requires declarations to precede uses, it is impossible to
6232
+ Note that since P4 requires definitions to precede uses, it is impossible to
6234
6233
create recursive (or mutually recursive) parsers.
6235
6234
6236
6235
Architectures may impose (static or dynamic) constraints on the
@@ -6270,7 +6269,7 @@ valueSetDeclaration
6270
6269
~ End P4Grammar
6271
6270
6272
6271
Parser Value Sets support a `size` argument to provide hints to the compiler to
6273
- reserve hardware resource to implement the value set. For example, this parser
6272
+ reserve hardware resources to implement the value set. For example, this parser
6274
6273
value set:
6275
6274
6276
6275
~ Begin P4Example
@@ -6286,7 +6285,7 @@ storing `N` value set entries. See "Size property of P4 tables and parser value
6286
6285
sets" [P4SizeProperty] for further discussion on the implementation of parser
6287
6286
value set size.
6288
6287
6289
- The value set is populated by the control- plane by methods specified in the
6288
+ The value set is populated by the control plane by methods specified in the
6290
6289
P4Runtime specification.
6291
6290
6292
6291
# Control blocks { #sec-control }
0 commit comments