Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_kleene_case_t Struct Reference

SRN_KL_CASE: match scrutinee against arms. More...

#include <kleene.h>

Collaboration diagram for srn_kleene_case_t:
[legend]

Data Fields

srn_kleene_node_t * scrutinee
 The atom being matched.
srn_kleene_arm_t * arms
 The arms, one per matched constructor tag.
size_t arm_count
 Number of arms.

Detailed Description

SRN_KL_CASE: match scrutinee against arms.

The reader guarantees the tags are distinct.

Definition at line 148 of file kleene.h.

Field Documentation

◆ arm_count

size_t srn_kleene_case_t::arm_count

Number of arms.

Definition at line 154 of file kleene.h.

◆ arms

srn_kleene_arm_t* srn_kleene_case_t::arms

The arms, one per matched constructor tag.

Definition at line 152 of file kleene.h.

◆ scrutinee

srn_kleene_node_t* srn_kleene_case_t::scrutinee

The atom being matched.

Definition at line 150 of file kleene.h.


The documentation for this struct was generated from the following file: