Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / EBNF

Command grammar

Family: EBNF. Status: Implemented.

A command with a choice and an optional argument.

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

Preview

Command grammar preview
Command grammar preview (dark)

Source

ebnf-command.puml

text/plain

@startebnf
title Command
command = ("get" | "put"), name, [ "--force" ];
name = letter, { letter | digit };
letter = ? alphabetic ?;
digit = ? decimal digit ?;
@endebnf

Download source: ebnf-command.puml

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.