Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / EBNF

Protocol fields and choices

Family: EBNF. Status: Implemented.

Optional and repeated fields with an explicit alternative.

Scope: Grammar structure and bounded exploration only. Parse evidence requires an external engine.

Preview

Protocol fields and choices preview
Protocol fields and choices preview (dark)

Source

ebnf-protocol.puml

text/plain

@startebnf
title Protocol line
message = verb, " ", path, [ "?", query ];
verb = "GET" | "POST" | "DELETE";
path = "/", name, { "/", name };
query = name, "=", name, { "&", name, "=", name };
name = ? nonempty text ?;
@endebnf

Download source: ebnf-protocol.puml

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.