Download inCode.Rules Language - LOOSE Research Group

Transcript
Appendix B
BNF Language Grammar
Rules ::= Rule*
Rule ::= ID? Entity FilterExpression? Action Target ;
Entity ::= Package
::=
Class
::= Method
Package ::= packages
::= package
Class ::= classes
::= class
Method ::= methods.
::= method
FilterExpression ::=
::=
::=
::=
From
Being
Named
LeftParan
From ::= from EntityNames
Being ::= being STRING
Named ::= named EntityNames
LeftParan ::= ( FilterExpression Op FilterExpression )
EntityNames ::= EntityName
::= { EntityName+ }
Op ::= and
::= or
EntityName ::= STRING
62