123456789101112131415161718192021222324252627282930 |
- 'use strict';
- goog.provide('Blockly.Python.define');
- goog.require('Blockly.Python');
- Blockly.Python['define'] = function(block) {
- var defineINIT = Blockly.Python.valueToCode(block, 'define_init', Blockly.Python.ORDER_ATOMIC);
- var defineVAR = Blockly.Python.valueToCode(block, 'define_variable', Blockly.Python.ORDER_ATOMIC);
-
- Blockly.Python.addDeclaration('define_init', '#define\t' + defineINIT + '\t' + defineVAR, false);
- var code = '';
- return code;
- };
- Blockly.Python['define_var'] = function(block) {
- var defVariable = Blockly.Python.valueToCode(block, 'define_variable', Blockly.Python.ORDER_ATOMIC);
-
- var code = '';
-
- return [code, Blockly.Python.ORDER_NONE];
- };
|