summaryrefslogtreecommitdiff
path: root/2.3-1/macros/SymbolTable
diff options
context:
space:
mode:
authoryash11122017-06-19 05:40:46 +0530
committeryash11122017-06-19 05:40:46 +0530
commit3121a1f5a8203bfd14d46f71930ac5cd22afdf7d (patch)
tree42fc74d21d1506f2e69359f4083e2d17b4328394 /2.3-1/macros/SymbolTable
parent02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff)
downloadScilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.gz
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.bz2
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.zip
1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI
Diffstat (limited to '2.3-1/macros/SymbolTable')
-rw-r--r--2.3-1/macros/SymbolTable/ST_AnalyzeScope.binbin0 -> 16792 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Del.binbin0 -> 4552 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_FindPos.binbin0 -> 5104 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Get.binbin0 -> 8108 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetInArgInfo.binbin0 -> 39244 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci15
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetSymbolInfo.binbin0 -> 13320 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_InsForCntVars.binbin0 -> 25508 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_InsOutArg.binbin0 -> 33508 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_InsOutArg.sci2
-rw-r--r--2.3-1/macros/SymbolTable/ST_Load.binbin0 -> 4288 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_MatchSymbol.binbin0 -> 9112 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Save.binbin0 -> 5440 bytes
-rw-r--r--2.3-1/macros/SymbolTable/ST_Set.binbin0 -> 7048 bytes
-rw-r--r--2.3-1/macros/SymbolTable/libbin1199 -> 752 bytes
15 files changed, 13 insertions, 4 deletions
diff --git a/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin
new file mode 100644
index 00000000..7e727a04
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Del.bin b/2.3-1/macros/SymbolTable/ST_Del.bin
new file mode 100644
index 00000000..c26e2e58
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_Del.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_FindPos.bin b/2.3-1/macros/SymbolTable/ST_FindPos.bin
new file mode 100644
index 00000000..c7003f30
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_FindPos.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Get.bin b/2.3-1/macros/SymbolTable/ST_Get.bin
new file mode 100644
index 00000000..512e72b7
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_Get.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin
new file mode 100644
index 00000000..97512b3a
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci
index 9f5cbd4e..4c85408c 100644
--- a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci
+++ b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci
@@ -49,13 +49,13 @@ for cntinarg = 1:NInArg
tmpname = InArg(cntinarg).Name;
tmpscope = InArg(cntinarg).Scope;
lengthNumber = length('Number_');
- if (part(tmpscope,1:lengthNumber) == 'Number_')
+ if (part(tmpscope,1:lengthNumber) == 'Number_')
// #RNU_RES_B
PrintStringInfo('Input Argument '+string(cntinarg)+' is a number: '+tmpname+'.',FileInfo.Funct(nxtscifunnumber).ReportFileName,'file');
// #RNU_RES_E
UpdatedInArg(cntinarg).Type = part(tmpscope,lengthNumber+1:lengthNumber+1);
if (UpdatedInArg(cntinarg).Type == 'x')
- UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default.
+ UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default
elseif (UpdatedInArg(cntinarg).Type == 'X')
if (SharedInfo.DefaultPrecision == 's')
UpdatedInArg(cntinarg).Type = 'c'; // It is the default.
@@ -101,6 +101,17 @@ for cntinarg = 1:NInArg
UpdatedInArg(cntinarg).FindLike = 0;
UpdatedInArg(cntinarg).Dimension = 0;
UpdatedInArg(cntinarg).Scope = 'Number';
+ if((ASTFunName == 'cmd_analog_in' | ASTFunName == 'cmd_analog_in_volt' ) & cntinarg == 2)
+ numvalue = eval(tmpname);
+ if (SharedInfo.Board_name == 'mega' | SharedInfo.Board_name == 'mega2560') then
+ tmpname = string(numvalue + 54)
+ UpdatedInArg(cntinarg).Value = 54 + numvalue;
+ else
+ tmpname = string(numvalue + 14)
+ UpdatedInArg(cntinarg).Value = 14 + numvalue;
+ end
+ UpdatedInArg(cntinarg).Name = tmpname; // Change the name.
+ end
elseif (tmpscope == 'String')
// #RNU_RES_B
diff --git a/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin b/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin
new file mode 100644
index 00000000..b8a7cf74
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin
new file mode 100644
index 00000000..12882fc7
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin
new file mode 100644
index 00000000..7571456a
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.sci b/2.3-1/macros/SymbolTable/ST_InsOutArg.sci
index f4958ff7..fd6b426c 100644
--- a/2.3-1/macros/SymbolTable/ST_InsOutArg.sci
+++ b/2.3-1/macros/SymbolTable/ST_InsOutArg.sci
@@ -47,8 +47,6 @@ PrintStringInfo('***Putting output arguments in the symbol table***',ReportFileN
// ---------------------------
// --- End Initialization. ---
// ---------------------------
-
-
for counteroutput = 1:NOutArg
// #RNU_RES_B
PrintStringInfo(' Symbol ""'+OutArg(counteroutput).Name+'""',ReportFileName,'file','y','n');
diff --git a/2.3-1/macros/SymbolTable/ST_Load.bin b/2.3-1/macros/SymbolTable/ST_Load.bin
new file mode 100644
index 00000000..f158c2b6
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_Load.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin
new file mode 100644
index 00000000..278560d0
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Save.bin b/2.3-1/macros/SymbolTable/ST_Save.bin
new file mode 100644
index 00000000..4aa50a20
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_Save.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/ST_Set.bin b/2.3-1/macros/SymbolTable/ST_Set.bin
new file mode 100644
index 00000000..cbd26274
--- /dev/null
+++ b/2.3-1/macros/SymbolTable/ST_Set.bin
Binary files differ
diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib
index dbc603e2..59ce4653 100644
--- a/2.3-1/macros/SymbolTable/lib
+++ b/2.3-1/macros/SymbolTable/lib
Binary files differ