DRONIAN
CODE
M.A.G.P.I.E. DRONE Language
Structure
Executive phrases include Statements:
AR-D001 is Marty.
and Commands.
Deploy Marty to Camp_One.
All executive phrases must have the appropriate syntax.
Comma ( , ) can be used to group multiple subjects together to the same statement or command.
Add Marty, Darty, Stroller1, Stroller2 to C1_Squad.
Marty, Darty, Stroller1, Stroller2 is Drone_Military.
Semi-colon ( ; ) can be used to create a sequence of statements and commands.
Deploy Marty to Camp_One; Assign Marty to C1_Security; RUN C1_Security.
Period ( . ) must be used at the end of each phrase to validate it.
subject
A subject is the target entity of the phrase, upon which the statement or command are acted upon.
Statements
Subject + statement type + statement object
Statement Types
A statement type defines how the subject should be altered.
Statement Objects
A statement object defines what the subject should be altered to.
Commands
command + subject + destination
Deploy Marty to Camp_One.
Commands give the subject something to do at a Destination.
Commands have their own usage and syntax, and destinations can include entities that are also subjects of other phrases, or the same subject in the current phrase, in which case the destination will be SELF.
RUNInstruct the recipient software to run a program.
RUN + "Program".
Validation
The recipient runs the program and returns:
"Program" ONLINE.
or:
"Program" done.
invalidation
The recipient cannot run the program and returns:
Unable to run "Program".
or: "Program" failed.
or: "Program" not found.
Comments