Beispiel #1
0
def QArWithoutVAT(node, params, result: Result):
    result.operator = "without_vat"
Beispiel #2
0
def QArPercentOperator(node, params, result: Result):
    result.operator = "percent"
Beispiel #3
0
def QArFractionOperator(node, params, result: Result):
    result.operator = "fraction"
Beispiel #4
0
def QArSquareRootOperator(node, params, result: Result):
    result.operator = "sqrt"
Beispiel #5
0
def QArPowOperator(node, params, result: Result):
    result.operator = "pow"
Beispiel #6
0
def QArMultiplicationOperator(node, params, result: Result):
    """ 'Hvað er 17 sinnum 34?' """
    result.operator = "multiply"
Beispiel #7
0
def QArDivisionOperator(node, params, result: Result):
    result.operator = "divide"
Beispiel #8
0
def QArMinusOperator(node, params, result: Result):
    result.operator = "minus"
Beispiel #9
0
def QArSumOperator(node, params, result: Result):
    result.operator = "plus"
Beispiel #10
0
def QArMultOperator(node, params, result: Result):
    """ 'tvisvar_sinnum', 'þrisvar_sinnum', 'fjórum_sinnum' """
    add_num(result._nominative, result)
    result.operator = "multiply"