Commit 4e537b64 authored by carlosperate's avatar carlosperate

Add character type to static typing.

parent 294b3084
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
* @license Licensed under the Apache License, Version 2.0 (the "License"): * @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* @fileoverview * @fileoverview Functions to implement types into blocks.
*
* *
*/ */
'use strict'; 'use strict';
...@@ -35,6 +34,7 @@ Blockly.StaticTyping.blocklyType = { ...@@ -35,6 +34,7 @@ Blockly.StaticTyping.blocklyType = {
UNSPECIFIED: 'Unspecified', UNSPECIFIED: 'Unspecified',
NULL: 'Null', NULL: 'Null',
TEXT: 'Text', TEXT: 'Text',
CHARACTER: 'Character',
BOOLEAN: 'Boolean', BOOLEAN: 'Boolean',
NUMBER: 'Number', NUMBER: 'Number',
INTEGER: 'Integer', INTEGER: 'Integer',
......
...@@ -305,6 +305,8 @@ Blockly.Arduino.getArduinoType_ = function(typeBlockly) { ...@@ -305,6 +305,8 @@ Blockly.Arduino.getArduinoType_ = function(typeBlockly) {
return 'float'; return 'float';
case Blockly.StaticTyping.blocklyType.TEXT: case Blockly.StaticTyping.blocklyType.TEXT:
return 'String'; return 'String';
case Blockly.StaticTyping.blocklyType.CHARACTER:
return 'char';
case Blockly.StaticTyping.blocklyType.BOOLEAN: case Blockly.StaticTyping.blocklyType.BOOLEAN:
return 'boolean'; return 'boolean';
case Blockly.StaticTyping.blocklyType.ERROR: case Blockly.StaticTyping.blocklyType.ERROR:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment