Non-Terminal Symbols (Non-Terminal Symbols), lesson, page 724616
https://www.purl.org/stefan_ram/pub/non-terminal_symbols_programming (permalink) is the canonical URI of this page.
Stefan Ram
Python Course

>724400 Nichtterminalsymbole

Railroad Diagrams Non-Terminals

Railroad diagram

plus sign

.-.
|-|--->( + )--->|-|
'-'

double plus

.-----------. .-----------.
|-|--->| plus sign |--->| plus sign |--->|-|
'-----------' '-----------'

A square box can contain the name of a category, which means that a text of the named category must be inserted  in place of the box. In other words, the named production can be used in place of the square box.

After inserting the production for »plus sign«

double plus

.-------------------. .-------------------.
| .-. | | .-. |
|-|--->||-|--->( + )--->|-||--->||-|--->( + )--->|-||--->|-|
| '-' | | '-' |
'-------------------' '-------------------'

After inserting the production for »plus sign« and simplification

double plus

.-. .-.
|-|--->( + )--->( + )--->|-|
'-' '-'

Such a square box is also called a non-terminal  (or non-terminal symbol ).

The category double plus  thus includes the text »++«.

A double plus
++
A terminal
 .-.
( + )
'-'
A non-terminal
.-----------.
| plus sign |
'-----------'

Practice Questions

?   Practice question

Railroad diagram

a

.-.
|-|--->( 1 )--->|-|
'-'

first

.---. .-.
|-|--->| a |--->( . )--->|-|
'---' '-'

Which text belongs to the category first  described above?

 

About this page, Impressum  |   Form for messages to the publisher regarding this page  |   "ram@zedat.fu-berlin.de" (without the quotation marks) is the email address of Stefan Ram.   |   A link to the start page of Stefan Ram appears at the top of this page behind the text "Stefan Ram".)  |   Copyright 1998-2020 Stefan Ram, Berlin. All rights reserved. This page is a publication by Stefan Ram. relevant keywords describing this page: Stefan Ram Berlin slrprd slrprd stefanramberlin spellched stefanram724616 stefan_ram:724616 Non-Terminal Symbols Stefan Ram, Berlin, and, or, near, uni, online, slrprd, slrprdqxx, slrprddoc, slrprd724616, slrprddef724616, PbclevtugFgrsnaEnz Explanation, description, info, information, note,

Copyright 1998-2020 Stefan Ram, Berlin. All rights reserved. This page is a publication by Stefan Ram.
https://www.purl.org/stefan_ram/pub/non-terminal_symbols_programming