Пример #1
0
    def create_assign_variable(self, parent, cur, end=None):
        """
Create right-hand-side variable (Expression)

| Structure:
|   Cset|Cvar|Fset|Fvar|Nset|Var|Set|Sset|Svar
|   | <list of expression>?

Args:
    parent (Node): Reference to parent node
    cur (int): position where variable is identified
    end (int, optional): position where variable ends

Returns:
    int: position where variable ends

See also:
    :py:func:`matlab2cpp.tree.variables.assign`
    """
        return variables.assign(self, parent, cur, end)
Пример #2
0
    def create_assign_variable(self, parent, cur, end=None):
        """
Create right-hand-side variable (Expression)

| Structure:
|   Cset|Cvar|Fset|Fvar|Nset|Var|Set|Sset|Svar
|   | <list of expression>?

Args:
    parent (Node): Reference to parent node
    cur (int): position where variable is identified
    end (int, optional): position where variable ends

Returns:
    int: position where variable ends

See also:
    :py:func:`matlab2cpp.tree.variables.assign`
    """
        return variables.assign(self, parent, cur, end)