Skip to content

Conversation

agocke
Copy link
Member

@agocke agocke commented Sep 25, 2025

This document introduces the concepts of enums and unions, detailing their syntax, semantics, and expansion options. It provides examples and grammar definitions for both types.

This document introduces the concepts of enums and unions, detailing their syntax, semantics, and expansion options. It provides examples and grammar definitions for both types.
@agocke agocke requested a review from a team as a code owner September 25, 2025 02:00
Enum declaration:

```C#
enum JsonValue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like the practical example.

## Syntax

Expanded enum:
```bnf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my pref is we stick with g4. IT's how we do all our grammars :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants