Actions
Bug #78
openDef FN causes syntax error, and array not dimensioned error
Start date:
01/25/2020
Due date:
% Done:
0%
Estimated time:
Affected version:
Description
User defined functions aren't working.
Example: From AMOS Pro User Guide, page 05.01.06.
Def Fn NAME$(A$)=Lower$(A$)
Print Fn NAME$("TheName")
Def Fn X(A,B,C)=A*B*C
Print Fn X(1,2,3)
Error results:
First pass...
main.aoz:1:7: error: syntax error
main.aoz:1:12: error: non dimensionned array
main.aoz:3:7: error: syntax error
main.aoz:3:8: error: non dimensionned array
{}
Task failed, no code generated...
Updated by Brian Flanagan almost 5 years ago
Oops! Forgot to login again: Brian Flanagan
Updated by Baptiste Pillot almost 5 years ago
- Assignee set to Francois Lionet
- source : https://www.amos2.fr/ide/Amos2/Ide/Program/448
- complete compiler result :
Error during compilation
AOZ Transpiler Version 0.9.3.1 - 21/01/2020
By Francois 'Amos' Lionet (c) AOZ Studio 2019
Website: https://aoz.studio
Support the project on Patreon: http://www.patreon.com/francoislionet
---------------------------------------------------------------------
PATH->Z:/home/amos2/compiler/0.9.3.1/languages
Removing directory: /home/amos2/ide/input/tickleman/78/html
Compiling /home/amos2/ide/input/tickleman/78, emulation: PC, speed: fast.
First pass...
main.aoz:1:12: error: syntax error
main.aoz:1:27: error: message not found typeerror: cannot set property 'variable' of undefined:(, , , )
main.aoz:2:7: error: syntax error
main.aoz:2:12: error: non dimensionned array
main.aoz:4:7: error: syntax error
main.aoz:4:8: error: non dimensionned array
{}
Task failed, no code generated...
Updated by Brian Flanagan over 4 years ago
- Affected version changed from 0.9.3.1 to 0.9.5.1
Tested in 0.9.5.1. Still broken:
Here's a simpler Example I just tested:
Def Fn LTRIM$(S$)=Right$(S$,Len(S$)-1)
Resulting errors:
main.aoz:16:7: error: Syntax error
main.aoz:16:13: error: Non dimensionned array
Task failed, no code generated...
Updated by Brian Flanagan over 4 years ago
- Affected version changed from 0.9.5.1 to 0.9.8.1
re-tested in 0.9.8.1. Still fails.
Updated by Brian Flanagan over 3 years ago
- Status changed from New to Resolved
- Target version set to 1.0.0 (B8) u15
Re-tested in 1.0.0 (B8) u15 7/13/2021
All above examples.
There is still a problem. It doesn't work with float function type. (I'll make a new ticket for this.)
Actions