How to write the syntax grammar of this diagram

173 views Asked by At

I am trying to write the syntax grammar of the below diagram but I didn't succeed. I tried

Choice   ::= letter ( ( 'digit' | '_' ) letter )

but it is totally wrong. How can I write the Syntax of this?

enter image description here

1

There are 1 answers

0
Jacques de Hooge On

The right syntax in EBNF like notation would be:

<name> = <letter> (<letter> | <digit> | <underscore>)*