Project

General

Profile

Bug #64

Updated by Baptiste Pillot almost 5 years ago

Lprint by itself compiles, but doesn't work. 

 Example: 

 Lprint 

 --- 

 Lprint with a variable or expression won't compile.    (produce syntax errors) 
 Example: 

 ```aoz 
 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: 

 ```aoz 
 L$="Z" 
 Lprint "AO"+L$ 
 ``` 


Back