I am using a Lua-based product, I am using their API, and there is some syntax that I don’t understand.
What is it? This is a function call for Add, and if so, what are the input parameters - there is nothing the purpose of this table is to enter a variable - no equals sign?
Is this function definition for Add - it seems strange without any implementation and indicating what is in the input tables?
Add a table containing tables? I have never seen a table created with parentheses, not braces?
serviceDefinitions.Add(
input { name="p1", baseType="NUMBER", description="The first addend of the
operation" },
input { name="p2", baseType="NUMBER", description="The second addend of the operation" },
output { baseType="NUMBER", description="The sum of the two parameters" },
description { "Add two numbers" }
)
source
share