当サイトは、P4-16公式仕様(v1.2.5)に基づき、 コミュニティ「p4-jp-community」が非公式に公開している文書です。内容には誤りや未訳・古い情報、 未解決の相互参照が含まれる可能性があります。 正確な情報については公式仕様の確認を行ってください。 改善の提案(翻訳・体裁・リンク修正など)は GitHubリポジトリでの Issue / Pull Requestを用いて行ってください。 ライセンスと帰属については NOTICE と LICENSE を参照してください。

This site is an unofficial publication maintained by the p4-jp-community, based on the P4-16 official specification (v1.2.5). The content is published unofficially by the community using MkDocs. The content may contain errors, untranslated or outdated material, and unresolved cross-references. For authoritative information, please consult the official specification. Please submit improvement proposals (translation, formatting, link fixes, etc.) via Issues / Pull Requests on our GitHub repository. For licensing and attribution, see NOTICE and LICENSE.

P4_16 Language Specification 非公式日本語訳
08 04 operations on match kind types
検索を初期化
    GitHub
    GitHub
    • Home
    • Chapter 01: 適用範囲
    • Chapter 02: 用語、定義、および記号
    • Chapter 03: 概要
    • Chapter 04: アーキテクチャモデル
    • Chapter 05: Example: A very simple switch
    • Chapter 06: P4 language definition
    • Chapter 07: P4 data types
    • Chapter 08: Expressions
    • Chapter 09: Compile-time size determination
    • Chapter 10: Function declarations
    • Chapter 11: Constants and variable declarations
    • Chapter 12: Statements
    • Chapter 13: Packet parsing
    • Chapter 14: Control blocks
    • Chapter 15: Parameterization
    • Chapter 16: Deparsing
    • Chapter 17: Architecture description
    • Chapter 18: P4 abstract machine: Evaluation
    • Chapter 19: Static assertions
    • Chapter 20: Annotations
      • Appendix A: Revision History
      • Appendix B: P4 reserved keywords
      • Appendix C: P4 reserved annotations
      • Appendix D: P4 core library
      • Appendix E: Checksums
      • Appendix F: Restrictions on compile time and run time calls
      • Appendix G: P4 grammar
      • NOTICE
      • LICENSE

    08 04 operations on match kind types

    Values of type match_kind are similar to enum values. They support only assignment and comparisons for equality and inequality.

    match_kind { fuzzy }
    const bool same = exact == fuzzy;  // always 'false'
    
    Made with Material for MkDocs