22 lines
416 B
Python
22 lines
416 B
Python
from collections.abc import Mapping
|
|
|
|
from .common import Procedure, SkillDataType, Variable
|
|
|
|
NUM = SkillDataType.number
|
|
ANY = SkillDataType.general
|
|
|
|
|
|
FUNCTIONS: Mapping[str, Procedure] = {
|
|
"plus": Procedure(
|
|
"plus",
|
|
ret=NUM,
|
|
args={
|
|
"op1": Variable("op1", NUM),
|
|
"op2": Variable("op2", NUM),
|
|
},
|
|
rest=Variable("op3", NUM),
|
|
),
|
|
}
|
|
|
|
FUNCTIONS["plus"]
|