Policy Language
Quoted 10 lines
I am asking to remove context sensitive meaning from tokens in the language.
Taken from "info bison".
"The Bison paradigm is to parse tokens first, then group them into larger syntactic units. In many languages, the meaning of a token is affected by its context. Although this violates the Bison paradigm, certain techniques (known as "kludges") may enable you to write Bison parsers for such languages."
The meaning of the tokens is not context sensitive. The fact that the keyword 'class' can occur in two different statements does not present a problem in scanning and parsing the configuration. The policy language grammar does not rely on any of the "kludges" described in the referenced section of the bison manual. Token parsing does not depend on semantic or syntactic context.
You can use the provided grammar (or a subset of it) as a basis for developing your own policy tools, as has already been done by others such as Tresys and MITRE.
--
Stephen Smalley, NSA
[email protected]
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.