...
Code Block | ||
---|---|---|
| ||
getOtherPort(int port) : int { return (port+1)%2; } ao getBaseTimeUnit : TimeUnit { SDFSchema schema = getInputSchema(0); SDFConstraint constraint = schema.getConstraint(SDFConstraint::BASE_TIME_UNIT); return constraint.value; } po pint(IPunctuation punctuation) { sendPunctuation(punctuation); } |
Grammar
Code Block | ||
---|---|---|
| ||
ODLModel ::= (Namespace)* (UserOperator | Class | Interface)*.
UserOperator ::= "operator" ID ("(" (Metadata ("," Metadata))? ")")? "{" (ODLAttribute | ODLMethod) "}".
ODLAttribute ::= (("optional")? "parameter")? ("(" (Metadata ("," Metadata))? ")")? Attribute.
ODLMethod ::= ("on" | "validate" | "override" | ("override")? "ao" | ("override")? "po")? (MethodDeclaration)? StatementBlock. |