Mermaid Railroad Diagram with MAIDR

Each grammar rule opens onto the expression it is made of: sequences, choices, optional and repeated parts.

railroad-ebnf-beta
title "Signed number"
number = [ sign ] , digit , { digit } ;
sign = "+" | "-" ;
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;