-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't use verify in parser #141
Comments
As far as I know the behavioral simulator does not support implementing a verify function. |
Actually, since the error is invisible anywhere in v1model.p4, we can probably implement verify by just a conditional transition to reject. |
At lunch today, Chris suggested that verify would be compiled down into -N On Tue, Nov 8, 2016 at 4:56 PM, Mihai Budiu notifications@github.com
|
I'm getting a confusing warning message:
The generated JSON looks like this:
|
Yes, we should remove the warning. |
BTW: to see what this compiles into you can use the --top4 flag supplying a pass name. |
Right. What's confusing is that my program didn't contain any
|
I have just pushed a commit to remove this warning; it's now on top of the existing pull request. |
Looks good. |
If I try to invoke
verify
(a built-in function whose type is currently defined incore.p4
), in the parser using the bmv2 backend,I get an error in the JSON converter:
The culprit seems to be that the implementation of
JsonConverter::convertParserStatement
is incomplete:https://github.com/p4lang/p4c/blob/master/backends/bmv2/jsonconverter.cpp#L2111
The text was updated successfully, but these errors were encountered: