Derivable rules

Top  Previous  Next

Grammar tests > Derivable rules


Each non-terminal symbol must be derivable to terminal symbols. The following production is an example for a rule, which hurts this principle:


X ::= "(" X ")"


If you parse this rule, following error message will occur:


"X": can't derive to terminals



This page belongs to the TextTransformer Documentation

Home  Content  German