EBNF diagram symbol meanings Flashcards

1
Q

abc “(“

A

Terminal symbol for a literal. The characters abc are written as they appear. Quotes are used to enclose symbols used by the metalanguage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

< Item >

A

Non-terminal symbol. Item is defined elsewhere.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

< 1 > | < 2 >

A

“or” a choice between two alternatives. Either Item1 or Item2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a | b

A

“is defined as”. Item can take the value a or b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

[ ]

A

Optional part.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

{ }

A

Possible repetition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

< 1 > { 1 }

A

Repetition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

(FOO) | BOO

A

Grouping. A Foogle is an Item followed by the reserved word FOO or it is the reserved word BOO.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly