Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExample
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
titleGrammar
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.