Actions
Bug #64
openLprint returns syntax error.
Start date:
01/22/2020
Due date:
% Done:
0%
Estimated time:
8:00 h
Affected version:
Description
Lprint by itself compiles, but doesn't work.
Example:
Lprint
Lprint with a variable or expression won't compile. (produce syntax errors)
Example:
For L=1 to 66
Lprint L
Next L
End
First pass...
Second pass...
main.aoz:2:8: error: syntax error
main.aoz:1:1: Compiler error: crash during compilation: pass: 2
cannot read property 'indexof' of undefined
typeerror: cannot read property 'indexof' of undefined
at object.replacestringintext (c:\snapshot\compiler\utilities.js)
at secondpass (c:\snapshot\compiler\compiler.js)
at object.compile (c:\snapshot\compiler\compiler.js)
at compile (c:\snapshot\compiler\aoz.js)
at aoz (c:\snapshot\compiler\aoz.js)
at object.<anonymous> (c:\snapshot\compiler\aoz.js)
at module._compile (pkg/prelude/bootstrap.js:1261:22)
at object.module._extensions..js (internal/modules/cjs/loader.js:993:10)
at module.load (internal/modules/cjs/loader.js:813:32)
at function.module._load (internal/modules/cjs/loader.js:725:14)
Internal error
Task failed, no code generated...
The same result is produced with a string and/or expression:
L$="Z"
Lprint "AO"+L$
Updated by Baptiste Pillot almost 5 years ago
- Description updated (diff)
- source : https://www.amos2.fr/ide/Amos2/Ide/Program/435
- compile result : error confirmed.
Updated by Brian Flanagan almost 5 years ago
- Affected version changed from 0.9.3 to 0.9.5
Tested in version 0.9.5.1.
Still fails.
Updated by Brian Flanagan over 4 years ago
- Affected version changed from 0.9.5 to 0.9.8.1
Changed affected version to 0.9.8.1 (Test 2) Still fails.
Updated by Brian Flanagan over 4 years ago
- Status changed from New to Feedback
- Affected version changed from 0.9.8.1 to Beta RC2
Still crashes the compiler in Beta RC2.
Updated by Brian Flanagan about 4 years ago
- Estimated time set to 8:00 h
- Affected version changed from Beta RC2 to Beta RC3
Still fails in Beta RC3
Updated by Francois Lionet about 4 years ago
- Status changed from Feedback to Resolved
- Target version set to Beta 1
Fixed. It now compiles, but as it is not implemented the user will receive a "instruction not implemented" error if he uses it.
Actions