stepan-mitkin / drakon_editor

DRAKON Editor
352 stars 57 forks source link

How to gen code for parallel icon? #27

Open acctesttemp opened 6 years ago

acctesttemp commented 6 years ago

Hi, I love the way Drakon editor create diagram and can gen the code. Does anyone can gen code for parallel icon yet (language is python) ? I try to gen and get: Elements of type 'parallel' are not supported by the verifier yet Any plan to supported it in near future or refer some instruction docs to manual add it to the editor?

Many thank for your response! Cheer :")

Serenacula commented 6 years ago

No clue about plans for future support, but the update cycle for this is pretty slow so I wouldn't pin your hopes on it. There is also no significant documentation that I know of. That said, most of the code is available to peruse and change if you feel up to the task yourself.

Some documentation would actually be a pretty good idea, I should go through and write some up at some point...

acctesttemp commented 6 years ago

And also, I try find how to add decorate to a function in python language ( like static or virtual in C language but more in general way ) like:

@p_decorate
def get_text(name):
    return "{0}".format(name)

@Serenacula is the current editor support it ?