alan-compile
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -67,5 +67,5 @@ "use strict"; | ||
const evtName = rec.get('variable').t.trim(); | ||
// TODO: Add event support for Arrays | ||
const evtSize = rec.get('fulltypename').t.trim() === 'void' ? 0 : | ||
rec.get('fulltypename').t.trim() === 'string' ? -1 : 8; | ||
const evtSize = rec.get('fulltypename').t.trim() === 'void' ? 0 : [ | ||
'int8', 'int16', 'int32', 'int64', 'float32', 'float64', 'bool', | ||
].includes(rec.get('fulltypename').t.trim()) ? 8 : -1; | ||
eventMem[evtName] = evtSize; | ||
@@ -72,0 +72,0 @@ } |
{ | ||
"name": "alan-compile", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Compile of alan to amm and javascript", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -72,5 +72,5 @@ import { | ||
const evtName = rec.get('variable').t.trim() | ||
// TODO: Add event support for Arrays | ||
const evtSize = rec.get('fulltypename').t.trim() === 'void' ? 0 : | ||
rec.get('fulltypename').t.trim() === 'string' ? -1 : 8 | ||
const evtSize = rec.get('fulltypename').t.trim() === 'void' ? 0 : [ | ||
'int8', 'int16', 'int32', 'int64', 'float32', 'float64', 'bool', | ||
].includes(rec.get('fulltypename').t.trim()) ? 8 : -1 | ||
eventMem[evtName] = evtSize | ||
@@ -77,0 +77,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3482900