Commit 4e537b64 authored by carlosperate's avatar carlosperate

Add character type to static typing.

parent 294b3084
......@@ -2,8 +2,7 @@
* @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0
*
* @fileoverview
*
* @fileoverview Functions to implement types into blocks.
*
*/
'use strict';
......@@ -35,6 +34,7 @@ Blockly.StaticTyping.blocklyType = {
UNSPECIFIED: 'Unspecified',
NULL: 'Null',
TEXT: 'Text',
CHARACTER: 'Character',
BOOLEAN: 'Boolean',
NUMBER: 'Number',
INTEGER: 'Integer',
......
......@@ -305,6 +305,8 @@ Blockly.Arduino.getArduinoType_ = function(typeBlockly) {
return 'float';
case Blockly.StaticTyping.blocklyType.TEXT:
return 'String';
case Blockly.StaticTyping.blocklyType.CHARACTER:
return 'char';
case Blockly.StaticTyping.blocklyType.BOOLEAN:
return 'boolean';
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