Completeness

Top  Previous  Next

Grammar tests > Completeness

 

Each non-terminal (=production) must be defined by exactly one rule and there may not be a terminal, which is not defined

 

The TextTransformer guarantees the first part of the condition automatically, because it is not possible to insert two productions with the same name.

 

For the second part however the TextTransformer will execute a special test. It may happen, that a non-existing symbol name was used in the definition of a production. Already the syntax highlighting helps to avoid such an error: this name will not be shown in boldface printing. Not later than the TextTransformer parses the script an error message will be produced:

 

Unknown symbol: "xxx".

.



This page belongs to the TextTransformer Documentation

Home  Content  German