Friday, October 14, 2016

Policy Plus - Import Semantic Policy

Today I connected some UI to the Semantic Policy parser I finished yesterday. The form is essentially a basic text editor:


The Open File button produces a file browser dialog, then puts the contents of the selected file into the text box. The Reset button clears everything out of the text box except for the signature. The Verify button makes sure the text is a valid SPOL file. The Apply button actually applies the Semantic Policy information to the policy sources. This dialog is accessible under a new top-level menu, Share.

I rearranged the parser a little bit so that it could include the line where an error occurred in the exception. I also decided to put the section identifier (U or C) before the policy ID. That way, it's easier to scan and harder to forget.

The changes are live on GitHub.

No comments:

Post a Comment