Project

General

Profile

Bug #64

Lprint returns syntax error.

Added by Brian Flanagan over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
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$

Also available in: Atom PDF