What is the correct syntax to define a function which overloads any operator, say + operator for bit_vector type?

What is the correct syntax to define a function which overloads any operator, say + operator for bit_vector type? Correct Answer FUNCTION “+” (L : bit_vector, R : bit_vector) RETURN bit_vector IS

Function overloading and operator overloading both are same except one point which is operator which is to be overloaded must be placed in double quotation marks. Otherwise, the syntax for both type of overloading is same.

Related Questions

Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code: P → D* E* D → int ID {record that ID.lexeme is of type int} D → bool ID { record that ID.lexeme is of type bool} E → E1 + E2 {check that E1.type = E2.type = int; set E.type := int} E → !E1 {check that E1.type = bool; set E.type := bool} E → ID {set E.type := int} With respect to the above grammar; which one of the following choices is correct?
which function overloads the>> operator?
Which function overloads the + operator?
Which function overloads the == operator?
Which function overloads the >> operator?
Which function overloads the // operator?
Which function overloads the >> operator?