#-*- coding: utf-8 -*-
class ScratchCommands:
  def __init__(self):
    self.catNames = [
                    "operators",
                    "sensing",
                    "data",
                    "looks",
                    "motion",
                    "events",
                    "control",
                    "pen",
                    "sound",
                    "MoreBlocks"]
    self.catCommands = {}
    self.catCommands["operators"] = ["-",
                                    "*",
                                    "/",
                                    "&",
                                    "%",
                                    "+",
                                    "<",
                                    "=",
                                    ">",
                                    "|",
                                    "abs",
                                    "computeFunction:of:",
                                    "concatenate:with:",
                                    "letter:of:",
                                    "not",
                                    "randomFrom:to:",
                                    "rounded",
                                    "sqrt",
                                    "stringLength:"]
    self.catCommands["sensing"] =   ["answer",
                                    "color:sees:",
                                    "distanceTo:",
                                    "doAsk",
                                    "getAttribute:of:",
                                    "isLoud",
                                    "keyPressed:",
                                    "mousePressed",
                                    "mouseX",
                                    "mouseY",
                                    "senseVideoMotion",
                                    "sensor:",
                                    "sensorPressed:",
                                    "setVideoState",
                                    "setVideoTransparency",
                                    "soundLevel",
                                    "timeAndDate",
                                    "timer",
                                    "timerReset",
                                    "timestamp",
                                    "touching:",
                                    "touchingColor:",
                                    "yScroll",
                                    "xScroll"]
    self.catCommands["data"] =      ["append:toList:",
                                    "changeVar:by:",
                                    "CLR_COUNT",
                                    "contentsOfList:",
                                    "COUNT",
                                    "deleteLine:ofList:",
                                    "getLine:ofList:",
                                    "getUserId",
                                    "getUserName",
                                    "hideList:",
                                    "hideVariable:",
                                    "INCR_COUNT",
                                    "insert:at:ofList:",
                                    "lineCountOfList:",
                                    "list:contains:",
                                    "readVariable",
                                    "setLine:ofList:to:",
                                    "setVar:to:",
                                    "showList:",
                                    "showVariable:"]
    self.catCommands["looks"] =     ["backgroundIndex",
                                    "changeGraphicEffect:by:",
                                    "changeSizeBy:",
                                    "comeToFront",
                                    "costumeIndex",
                                    "filterReset",
                                    "goBackByLayers:",
                                    "hide",
                                    "hideAll",
                                    "lookLike:",
                                    "nextBackground",
                                    "nextCostume",
                                    "nextScene",
                                    "say:",
                                    "say:duration:elapsed:from:",
                                    "scale",
                                    "sceneName",
                                    "setGraphicEffect:to:",
                                    "setSizeTo:",
                                    "show",
                                    "showBackground:",
                                    "startScene",
                                    "startSceneAndWait",
                                    "think:",
                                    "think:duration:elapsed:from:"]
    self.catCommands["motion"]=     ["bounceOffEdge",
                                    "changeXposBy:",
                                    "changeYposBy:",
                                    "glideSecs:toX:y:elapsed:from:",
                                    "forward:",
                                    "gotoSpriteOrMouse:",
                                    "gotoX:y:",
                                    "heading",
                                    "heading:",
                                    "pointTowards:",
                                    "scrollAlign",
                                    "scrollRight",
                                    "scrollUp",
                                    "setRotationStyle",
                                    "turnLeft:",
                                    "turnRight:",
                                    "xpos",
                                    "xpos:",
                                    "ypos",
                                    "ypos:"]
    self.catCommands["events"]=     ["broadcast:",
                                    "doBroadcastAndWait",
                                    "whenClicked",
                                    "whenGreenFlag",
                                    "whenIReceive",
                                    "whenKeyPressed",
                                    "whenSceneStarts",
                                    "whenSensorGreaterThan"]
    self.catCommands["control"]=    ["createCloneOf",
                                    "deleteClone",
                                    "doForever",
                                    "doForeverIf",
                                    "doForLoop",