|
|
|
|
|
by brudgers
3981 days ago
|
|
Negative examples do not change the most restrictive regular language. It remains the union of the accepted strings. Negative examples constrain the most permissive interpretation to the regular language defined: 1a. Let NegativeExamples be the most restrictive regular
expression [as above] using the negative examples as
input.
or
1b. Let NegativeExamples be the most permissive regular
expression [as above] using the negative exmaples as
input.
2. Let U be the regular language defined by the kleene star.
The negative examples define the regular language: U - NegativeExamples
And depending on the choice of 1a or 1b, you get a regular language slightly more restricted than the kleene star or the empty language.Regular expressions are a compact way of precisely describing an enumeration of permutations. The only way to get equal precision via enumeration is to fully enumerate all the permutations. Once a parser gets into the picture, then the input strings have to have semantics that the parser can use and a hidden set of parser rules for interpreting those semantics. |
|